Select default relationship
But in no Select field it sets the default value I want, except in startDate and endDate, which do have it by default. What could be happening?
4 Replies
in
mount()
I think you miss the $this->form->fill();
thank you so much! It's works now
But If I change between tenants always keep the first Tenant default:
Select::make('stores')
->multiple()
->relationship('stores', 'name')
->searchable()
->preload()
->default([Filament::getTenant()->id])
->options(auth()->user()->stores()->pluck('name', 'id'))
->label('Tiendas'),
what do you always keep first tenant default?
Exactly, now all queries are saved in session even if the Tenant changes
Now that I think about it, it could even stay that way. jeje