Extends Checkbox
- has the same features
The Switcher field is an extension of Checkbox with a different visual design.
use MoonShine\Fields\Switcher;//...public function fields(): array{return [Switcher::make('Publish', 'is_publish')];}//...
use MoonShine\Fields\Switcher;//...public function fields(): array{return [Switcher::make('Publish', 'is_publish')];}//...