naif/toggle-switch-field is a Laravel package for a toggle switch field for nova 4..
It currently has 6 GitHub stars and 75.967 downloads on Packagist (latest version 2.0.0).
Install it with composer require naif/toggle-switch-field.
Discover more Laravel packages by naif
or browse all Laravel packages to compare alternatives.
Last updated
For Toggle Switch Field for Nova 3 go to https://github.com/naifalshaye/toggle-switch
You can install the package into a Laravel app that uses Nova via composer:
composer require naif/toggle-switch-field
Table column migration
$table->boolean('toggle')->default(true);
Add the field to Nova Resource
public function fields(NovaRequest $request)
{
return [
ToggleSwitchField::make('Toggle','toggle')
->color('#3AB95A')
->indexToggle(false)
->detailToggle(false),
];
}





https://naif.io
Bug Tracker:
https://github.com/naifalshaye/toggle-switch-field/issues
The MIT License (MIT). Please see License File for more information.