Commit ba7137dc authored by Taylor Otwell's avatar Taylor Otwell

update routes and middleware

parent 3fa12671
...@@ -37,7 +37,7 @@ class AuthController extends Controller ...@@ -37,7 +37,7 @@ class AuthController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('guest', ['except' => 'getLogout']); $this->middleware('guest', ['except' => 'logout']);
} }
/** /**
......
...@@ -20,7 +20,7 @@ class Authenticate ...@@ -20,7 +20,7 @@ class Authenticate
if ($request->ajax()) { if ($request->ajax()) {
return response('Unauthorized.', 401); return response('Unauthorized.', 401);
} else { } else {
return redirect()->guest('auth/login'); return redirect()->guest('login');
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment