Commit 39338373 authored by Fabrício Kneipp's avatar Fabrício Kneipp

Change hard-coded '/login' string to named route

parent 9b02e5fa
...@@ -60,6 +60,6 @@ class Handler extends ExceptionHandler ...@@ -60,6 +60,6 @@ class Handler extends ExceptionHandler
return response()->json(['error' => 'Unauthenticated.'], 401); return response()->json(['error' => 'Unauthenticated.'], 401);
} }
return redirect()->guest('login'); return redirect()->guest(route('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