multi-tenancy slug/domain not correct work
hi
i am developing saas with multi tenancy
->tenant(Team::class, slugAttribute: 'slug')
->tenantDomain('{tenant}.filament.test')
used this ok ?
after routes worked by id
https://3.filament.test/app/employees
by default is https://test.filament.test/app is worked
anter route to https://3.filament.test/app/deparments not work
Why called team id 3 / not call slug ?
how to use by default slug ?
1 Reply
public function getRouteKeyName()
{
return 'slug'; // Assuming 'slug' is the attribute you want to use as the route key
}
Add to team model and fixed