Forms\Components\Select::make('club') ->live() ->required() ->searchable() ->label('Club') ->relationship(modifyQueryUsing: fn (Builder $builder) => $builder->whereNull('deleted_at')) ->afterStateUpdated(function (Forms\Set $set) { $set('plan_id', null); $set('membership_type', null); })
public function club(): BelongsTo{ return $this->belongsTo(Club::class);}