From 542e1d41f9bf0ded71a2fe999d565a1fbbb157ef Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 9 Sep 2022 00:37:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index e47644f..6c2dae3 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -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);