Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何做到这一点: 1. 仅当用户登录时访问路由。2.访问受限页面时重定向到voyager登录。
Route::get('/call_sheet', 'CallSheetsController@index');
该路线返回一个视图。
您可以使用Voyager middleware.
Voyager middleware
Route::get('/call_sheet', 'CallSheetsController@index')->middleware('admin.user');