When entering localhost / login, the login form is displayed, you can also register there, but my application should not do that yet. I tried to write in routs Route::get('login', 'HomeController@index'); but for some reason it is ignored, and the form is still displayed. Where and what needs to be corrected to exclude the possibility of showing the authorization form and registration to all users?

  • show routers.php. - ExileeD

1 answer 1

If you used

 php artisan make:auth 

then you have added a line to the routes

 Auth::routes(); 

Roll it and there will be happiness.