强制使用 auth 的 guard

This commit is contained in:
候学杰 2018-05-29 21:32:31 +08:00
parent 216c41e7cd
commit dbd29c82fd

View File

@ -22,7 +22,7 @@ class CheckRole
return $next($request);
}
$user = $request->user();
$user = $request->user('auth');
if (empty($user) || empty($user['roles'])) {
abort(403, '无权访问');