update routes and middleware

This commit is contained in:
Taylor Otwell 2015-12-03 23:11:04 -06:00
parent 3fa12671ce
commit ba7137dcb0
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class AuthController extends Controller
*/
public function __construct()
{
$this->middleware('guest', ['except' => 'getLogout']);
$this->middleware('guest', ['except' => 'logout']);
}
/**

View File

@ -20,7 +20,7 @@ public function handle($request, Closure $next)
if ($request->ajax()) {
return response('Unauthorized.', 401);
} else {
return redirect()->guest('auth/login');
return redirect()->guest('login');
}
}