Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Toggle Switch

Installation Instructions

You can install the package in to 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 swhich color by color code
Toggle::make('Toggle')->color('#7e3d2f'),

Support:

naif@naif.io

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

License

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

Readme

Nova Toggle Switch Field

* 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'),
    

Support:

naif@naif.io

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

License

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

Back to Top
Added 7 years ago
Last updated 2 Years Ago
Version 1.4
Composer
naif/toggle
GitHub stars 26
Packagist downloads 71,083

Favorites

26 users favorited

Rating

4.30
(out of 5)
★★★★★
★★★★
★★★
★★
3 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas