Replies: 1 comment 3 replies
-
Your middleware probably needs to just check that you're not already "on" the page being redirected to. Else this endless loop.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I created a new column in roles table, so user can assign a default page for the role. When a user logins successfully if his/her role has a default page, I want him/her to be redirected to that default page, if his/her role doesn't have a default page (empty) then he/she will be redirected to the default home page. I tried to achieve this using a middleware however it didn't work. What am I doing wrong?
Laravel: 10.48.4
PHP: 8.1.25
My web.php is below:
When a user with the role default page strategies logins successfully, I get the below redirection and error,
This is the developer console screenshot:
Beta Was this translation helpful? Give feedback.
All reactions