ERR_TOO_MANY_REDIRECTS Mutiple Panels Single Panel For Auth Login
Hey! I've set up 4 Filament panels in my Laravel app: Admin, Student, Guardian, and App.
Each has its own dashboard like /admin/dashboard, except App, which is just for login/registration.
After login, users are redirected to their role’s dashboard via a custom LoginResponse.
Example: admin → /admin/dashboard.
Issue:
When logged in and visiting /app, I get a "Too many redirects" error.
When logged out, it redirects to the login page (which is fine).
How can I disable or prevent /app access after login?
Here’s my App panel(Default Panel):
Admin panel uses:
EnsureUserHasRole.php
running out of characters wil post the response class next
4 Replies
You've got a loop somewhere, find that. Usually by dd'ing each step.
As above, or use Laravel Log functionality to log each step and you'll. see where your getting too in the loop continuousl.y
It's probably the default filament Authenticate middleware, i replaced that with a custom version with changes to redirectUsing
By default it redirects to the default or current panel login url, not 100% sure im on phone