code formatting
This commit is contained in:
parent
e3bd984b01
commit
02274da8fd
|
@ -20,7 +20,8 @@ public function handle($request, Closure $next, $guard = null)
|
|||
if (Auth::guard($guard)->guest()) {
|
||||
if ($request->ajax() || $request->wantsJson()) {
|
||||
return response('Unauthorized.', 401);
|
||||
}
|
||||
}
|
||||
|
||||
return redirect()->guest('login');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue