修复 状态码返回错误

This commit is contained in:
iVampireSP.com 2022-09-09 00:37:04 +08:00
parent 56f2964248
commit 542e1d41f9
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -38,7 +38,7 @@ public function __construct(Auth $auth)
public function handle($request, Closure $next, $guard = null) public function handle($request, Closure $next, $guard = null)
{ {
if ($this->auth->guard($guard)->guest()) { if ($this->auth->guard($guard)->guest()) {
return $this->forbidden('Unauthorized.'); return $this->unauthorized('Unauthorized.');
} }
return $next($request); return $next($request);