brand3000 / nova-toggle-switch
A Laravel Nova field.
Installs: 80
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 1
Forks: 10
Language:Vue
pkg:composer/brand3000/nova-toggle-switch
Requires
- php: ^7.3|^8.0
This package is auto-updated.
Last update: 2025-10-01 00:13:30 UTC
README
A Laravel Nova toggle switch field. Adapted for Nova 4.
Installation
You can install the package into a Laravel app that uses Nova via composer:
composer require brand3000/nova-toggle-switch dev-master
Usage:
Add the below to a nova resource:
# You can set the toggle switch color by color code. Toggle::make('Toggle')->color('#7e3d2f'), # Also you can set the toggle switch true and false colors that displayed in index and detail views by color code. Toggle::make('Toggle')->color('#7e3d2f')->onColor('#7a38eb')->offColor('#ae0f04'),
License
The MIT License (MIT). Please see License File for more information.