spunkylm / better-boolean
A slightly more customizable boolean field for Laravel Nova
dev-master
2019-07-12 13:29 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-05-13 00:25:15 UTC
README
A drop in replacement for the default Laravel Nova Boolean field
Installation
composer require spunkylm/better-boolean
Usage
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(),