It is necessary in the project on Laravel 5.5 to make the admin panel, which will be accessible via site.domaine / admin. I unveiled the authorization out of the box according to the instructions http://laravel.su/docs/5.4/authentication and as long as it applies to the entire site. Those. site.domaine / login, site.domaine / logout, etc. And you need to configure the project so that all this is inside site.domaine / admin, i.e. site.domaine / admin / login, site.domaine / admin / logout, etc. Tell me how to put all this on the admin URL - / admin / *

    1 answer 1

    routers responsible for admin panel should be placed in a group with authorization

    Route::group(['middleware' => ['web']], function () { # роутеры сайта Route::group(['prefix' => 'admin', 'middleware' => ['auth']], function () { # роутеры админки }) })