code formatting

This commit is contained in:
Taylor Otwell
2016-07-09 11:27:46 -05:00
parent e3bd984b01
commit 02274da8fd

View File

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