A slightly more customizable boolean field for Laravel Nova
spunkylm/better-boolean is a Laravel package for a slightly more customizable boolean field for laravel nova.
It currently has 0 GitHub stars and 6 downloads on Packagist.
Install it with composer require spunkylm/better-boolean.
Discover more Laravel packages by spunkylm
or browse all Laravel packages to compare alternatives.
Last updated
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(),