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