0
如果用户试图访问/管理/仪表板未授权视图应该显示Laravel显示无权这里有两条路线如果用户打开管理员路线
Route::group(['prefix' => 'admin', 'middleware' => ['role:superAdmin']], function() {
Route::get('/dashboard', 'Admin\[email protected]');
});
Route::group(['prefix' => 'user', 'middleware' => ['role:user']], function() {
Route::get('/profile', 'User\[email protected]');
});
。
什么错误/页您当前的故事吗? – Qazi
Application.php行882中的HttpException,我需要为此自定义错误页面。 –