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
Hi,
change the redirects in auth.php config: PHP Code: auth.php: |
Welcome Guest, Not a member yet? Register Sign In |