spunkylm / better-boolean
A slightly more customizable boolean field for Laravel Nova
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/spunkylm/better-boolean
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2025-12-13 04:02:08 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(),