disable register laravel
Auth::routes(['register' => false]);
disable register laravel
Auth::routes(['register' => false]);
exclude registration from laravel auth
Laravel 5.7 introduced the following functionality:
Auth::routes(['register' => false]);
The currently possible options here are:
Auth::routes([
'register' => false, // Registration Routes...
'reset' => false, // Password Reset Routes...
'verify' => false, // Email Verification Routes...
]);
For older Laravel versions just override showRegistrationForm() and
register() methods in
AuthController for Laravel 5.0 - 5.4
Auth/RegisterController.php for Laravel 5.5
public function showRegistrationForm()
{
return redirect('login');
}
public function register()
{
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us