F
Filament4mo ago
agelos

fillament-php multitenancy implementation

i want to understand if this implemenation possible with multi-tenant filament-php even with some changes - a user is created without team. - when a restaurant is created it automaticly gets a new team created for that particular restaurant. - when i have a user that has created a restaurant he must me auto assigned as an owner tenant to the team of the restaurant - later the owner can create users / or invite them to join to the team of the restaurant with a specific role - the users can be in multiple restaurants-teams and have different roles on each one
5 Replies
toeknee
toeknee4mo ago
What you actually want by the sounds of it is to have Resturants as teams. and then you just assign people to it. Jetstream does this all natively, except it creates personal teams by default which you can scope out.
agelos
agelosOP4mo ago
i will "plain laravel" not jetstream thanks for the guidance ! is it possible to use restaurants as teams from configuration options though ?
toeknee
toeknee4mo ago
Yes it's just a model.
agelos
agelosOP4mo ago
where can i find the Team implementation ? i want to make sure something is ok in my panel i do ->tenant(model: Restaurant::class, slugAttribute: 'slug', ownershipRelationship: 'owner') which seems no ok to me ownershipRelationship should be what ?

Did you find this page helpful?