SwitchFilter

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

Extends Switch * has the same features
use MoonShine\Filters\SwitchBooleanFilter;
 
//...
 
public function filters(): array
{
return [
SwitchBooleanFilter::make('Active')
];
}
 
//...