canAccessPanel how make check for different panel if I use Single Login Panel
In my case I have 4 panel and 1 of them it's auth
when in my checks I am check for 3 panel what I have if they assign to role must return true
but I have problem $panel->id() return 'auth' panel
I need panel to what i am trying log in from my auth panel
for exemple if I am truing log in to [email protected]
admin panel it must return in $panel->id() ''admin" not "auth" which i am geting

12 Replies
/auth/login
will return auth
panel id
/admin/login
will return admin
panel idProblem was when you trying make single login for 3 or more panels then need make auth panel be always true in canAccessPanel
I would use a middleware to handle this
When I was trying to do it I am always got to many redirects in my browser
did you follow this article?
https://filamentexamples.com/tutorial/multiple-panels-sign-in-via-one-sign-in-page
Filament Examples
Filament Multiple Panels: Single Login Page for Admin/User Roles
Having multiple panels is excellent for separating users from other roles. However, managing each different login page can be tricky. So, let's make one login page for all panels and switch redirects based on roles.
Yes, before I am writing or asking I am digging full internet
maybe you could create a minimal repo on github to reproduce this issue
I solved this just adding “auth” => “true” to my match condition
GitHub
GitHub - YevheniiVolosiuk/squad-hub: Filament admin panel for manag...
Filament admin panel for manage a team players integrated with discord and more... - YevheniiVolosiuk/squad-hub
This is repo where I did this
solved?
Yes