F
Filament2mo ago
Vipul

Multi tenant system requires different config for different panels

So i'm relatively new and might be making a basic mistake but here's the scenario i'm facing: 1. we have a multi-tenant system implemented using Tenancy For Laravel (https://tenancyforlaravel.com/) with Filament Shield for RBAC. 2. We have a central panel called /platform which has CentralUser as the main auth model 3. another panel called tenant which has User as the main auth model. In this situation, we need
'auth_provider_model' => [
'fqcn' => 'App\\Models\\User',
],
'auth_provider_model' => [
'fqcn' => 'App\\Models\\User',
],
to be different for both the panels. How do we handle this?
1 Reply
Dennis Koch
Dennis Koch2mo ago
You can configure the ->authGuard() per panel which takes a Laravel guard.

Did you find this page helpful?