中间件
Route::middleware('auth') ->group(function () {
Route::get('dashboard',function () {
return 'dashboard';
});
Route::get('account',function () {
return 'account';
});
});Route::group(['middleware' => 'auth'], function () {
Route::get('dashboard', function () {
return view('dashboard');
});
Route::get('account', function () {
return view('account');
});
});Last updated