修复 状态码返回错误
This commit is contained in:
parent
56f2964248
commit
542e1d41f9
@ -38,7 +38,7 @@ public function __construct(Auth $auth)
|
||||
public function handle($request, Closure $next, $guard = null)
|
||||
{
|
||||
if ($this->auth->guard($guard)->guest()) {
|
||||
return $this->forbidden('Unauthorized.');
|
||||
return $this->unauthorized('Unauthorized.');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
Loading…
Reference in New Issue
Block a user