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);