Наследует Checkbox.
* имеет те же возможности
Поле Switcher
является расширением Checkbox
с другим визуальным оформлением.
use MoonShine\UI\Fields\Switcher;Switcher::make('Publish', 'is_publish')
use MoonShine\UI\Fields\Switcher;
Switcher::make('Publish', 'is_publish')
use MoonShine\UI\Fields\Switcher;Switcher::make('Publish', 'is_publish')
<x-moonshine::form.wrapper label="Publish"> <x-moonshine::form.switcher name="is_publish" value="1" :onValue="1" :offValue="0" /></x-moonshine::form.wrapper>
<x-moonshine::form.wrapper label="Publish">
<x-moonshine::form.switcher
name="is_publish"
value="1"
:onValue="1"
:offValue="0"
/>
</x-moonshine::form.wrapper>
<x-moonshine::form.wrapper label="Publish"> <x-moonshine::form.switcher name="is_publish" value="1" :onValue="1" :offValue="0" /></x-moonshine::form.wrapper>
