Downloads
Stars
Version
A drop in replacement for the default Laravel Nova Boolean field
composer require spunkylm/better-boolean
The Toggle has all the same options as the Boolean field so you can set the values to be stored in the Model.
BetterBoolean::make('Status')
->trueValue(true, 'Good', '#21b978')
->falseValue(false, 'Neutral', '#bdbdbd')
->showLabelOnIndex(),