Customize the redirect if not logged in |
Hi,
if the user is not logged in and calls a protected route then the redirect goes to the /login route. How can i change this route to a custom url? Doing a check with PHP Code: if auth()->loggedIn() { //go to custom url} does not work in the controller. The redirect goes always to the /login route I found the solution in the documentation by using a filter: PHP Code: class LoggedIn implements FilterInterface |
Messages In This Thread |
Customize the redirect if not logged in - by groovebird - 01-25-2023, 07:26 AM
RE: Customize the redirect if not logged in - by [email protected] - 04-03-2023, 10:29 AM
|