Do multipanel + multitenancy a thing?
I am trying to make multipanel and multitenancy to work
I have 3 panels:
- AuthPanelProvider
- AdminPanelProvider
- CompanyPanelProvider - where the multitenancy reside
routes/web.php
middleware:
I am using this as the guide/reference: 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.
Solution:Jump to solution
Dashboard::getUrl has a "tenant" parameter
something like this... but use your own tenant value
```php return redirect()->to(Dashboard::getUrl(panel: PanelAccessEnum::COMPANY->value, tenant: $user->company ));...
```php return redirect()->to(Dashboard::getUrl(panel: PanelAccessEnum::COMPANY->value, tenant: $user->company ));...
3 Replies