Setting up simple tenancy with Filament Panels
-
To set up simple tenancy with Filament Panels you will need to pass your
Tenant::classto the->tenant()method of theAdvancedTablesPluginobject: -
After you have configured your tenant model you may proceed to run the
AddTenancycommand:This command will add and run the necessary migrations to finishing setting up multi-tenancy in Advanced Tables.
Setting up simple tenancy with Filament’s standalone Table Builder
-
To set up simple tenancy with Filament’s standalone Table Builder you will need to add your
Tenant::classto youradvanced-tables.phpconfig file: -
Inside your tenant model you need to include a
getTenantId()method so Advanced Tables knows which tenant to use for its scopes: -
After you have configured your tenant model and the
getTenantId()method, you may proceed to run theAddTenancycommand:This command will add and run the necessary migrations to finishing setting up multi-tenancy in Advanced Tables.