SelectFilter

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

Extends Select * has the same features
use MoonShine\Filters\SelectFilter;
 
//...
 
public function filters(): array
{
return [
SelectFilter::make('Country', 'country_id')
->options([
'value 1' => 'Option Label 1',
'value 2' => 'Option Label 2'
])
];
}
 
//...