'Frontend', 'prefix' => 'user', 'as' => 'frontend.', 'middleware' => ['role:admin|user'], ], function () { Route::resource('dashboard', 'DashboardController'); }); Auth::routes(); Route::get('/logout', 'Auth\LoginController@logout'); require base_path('routes/admin.php');