if you replace the new handler method with the old one it should still work..
Looks like there's a new unauthenticated() method in app/Exceptions/Handler.php which handles unauthenticated users and redirects to login.
As this is part of your app, no reason you couldn't customize it to redirect elsewhere.
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}
return redirect()->guest('login');
}
So I simply changed
return redirect()->guest('login');
to
return redirect()->guest('signin');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community