naif/toggle

A Laravel Nova toggle switch field for Nova 3

Installs: 55 124

Dependents: 0

Suggesters: 0

Security: 0

Stars: 26

Watchers: 2

Forks: 10

Open Issues: 2

Language:SCSS

1.4 2023-07-12 21:33 UTC

This package is not auto-updated.

Last update: 2024-05-28 19:08:55 UTC


README

* Toggle Switch Field for Nova 4 go to

https://github.com/naifalshaye/toggle-switch-field

A Laravel Nova toggle switch field

Installation

You can install the package into a Laravel app that uses Nova via composer:

composer require naif/toggle

Usage:

Add the below to Nova/User.php 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'),
    

colors.png

image1.png

image2.png

image3.png

image4.png

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License

The MIT License (MIT). Please see License File for more information.