Select the team model as default when creating a post in multi tenancy?

What is the best way to handle this or is there something for this? On a post I have a team_id but I need to select the team_id when creating a post but I want to have the current tenant selected as default when creating a post.
1 Reply
DitIsMik
DitIsMikOP16mo ago
Forms\Components\Select::make('team_id') ->options([ Filament::getTenant()->id ]) I have this now but there is probably a better approach for this?
Want results from more Discord servers?
Add your server