Disable public user register

Solved
oltean-tiberiu

Apr 13th, 2019 08:01 PM

hi, how do I disable public user register, in my project I want to create user just from admin

andrewo0

Apr 15th, 2019 05:43 AM

Best Answer

In your RegistartionController you can add this so it will always redirect back to login page.

public function showRegistrationForm()
{
    return redirect('login');
}

Or you can do this in your web.php by overwriting the registration route.