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
GwnMik02
GwnMik02OP2y ago
Forms\Components\Select::make('team_id') ->options([ Filament::getTenant()->id ]) I have this now but there is probably a better approach for this?

Did you find this page helpful?