Panel Logout

I have two panels, If I sign out of an Admin panel, I need to go to another panel's login. Can we do that?
7 Replies
PabloZagni
PabloZagni13mo ago
GitHub
Redirect of the logout to home page · filamentphp filament · Discus...
Please, how do I redirect my logout to home page of my front end? I currently, if I log out from admin dashboard, it redirect me to login page of the filament admin login. I want a way to redirect ...
Hemanath
HemanathOP13mo ago
It Working man Thanks, and can you help me one thing ,can you have any idea , like i want to allow some users to panel who have specific roles and not allow others.
PabloZagni
PabloZagni13mo ago
Of course In user model you have to implement canAccessPanel public function canAccessPanel(Panel $panel): bool { return $this->hasVerifiedEmail(); } if you have multiple panels, you have to check its ID like public function canAccessPanel(Panel $panel): bool { if ($panel->getId() === 'admin') { return str_ends_with($this->email, '@example.com') && $this->is_admin && $this->email_verified_at; } if ($panel->getId() === 'company') { return $this->is_company && $this->email_verified_at; } return false; }
PabloZagni
PabloZagni13mo ago
Remember to read the documentation, and search in this help topic. This is duplicated to https://discord.com/channels/883083792112300104/1167351882293968976
Hemanath
HemanathOP13mo ago
Ok man Thanks for help , I will remember.
PabloZagni
PabloZagni13mo ago
Please, mark as solved 😉

Did you find this page helpful?