|
@@ -20,7 +20,8 @@ class Authenticate
|
|
if (Auth::guard($guard)->guest()) {
|
|
if (Auth::guard($guard)->guest()) {
|
|
if ($request->ajax() || $request->wantsJson()) {
|
|
if ($request->ajax() || $request->wantsJson()) {
|
|
return response('Unauthorized.', 401);
|
|
return response('Unauthorized.', 401);
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
return redirect()->guest('login');
|
|
return redirect()->guest('login');
|
|
}
|
|
}
|
|
|
|
|