class Dashboard extends BaseDashboard
{
use HasFiltersForm;
public function filtersForm(Schema $schema): Schema
{
return $schema
->components([
Section::make()
->schema([
Select::make('country_id')
->live()
->searchable()
->preload()
->options(fn () => Model::query()...)
->afterStateUpdated(function ($state, Set $set) { ... })
]),
]);
}
}
class Dashboard extends BaseDashboard
{
use HasFiltersForm;
public function filtersForm(Schema $schema): Schema
{
return $schema
->components([
Section::make()
->schema([
Select::make('country_id')
->live()
->searchable()
->preload()
->options(fn () => Model::query()...)
->afterStateUpdated(function ($state, Set $set) { ... })
]),
]);
}
}