How to disable register route and other Auth route in laravel 5.7 +
How to disable register route and other Auth route in laravel 5.7 +
In this tutorial, we'll see how we can disable and remove the register route in laravel as follows:
Auth::routes();
Auth::routes([
'register' => false, // Register Routes...
'reset' => false, // Reset Password Routes...
'verify' => false, // Email Verification Routes...
'login' => true, // Login enabled
]);
So, in this format we can disable register route and other routes too which comes in Auth in Laravel.
Thanks for reading.