PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Naif Alshaye   Laravel Nova Toggle Switch   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Nova Toggle Switch
Provides a toggle control to use in Laravel Nova
Author: By
Last change:
Date: 5 years ago
Size: 1,090 bytes
 

Contents

Class file image Download

Nova Toggle Switch Field

A Laravel Nova toggle switch field

Installation

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

<img src="https://github.com/naifalshaye/toggle-switch/blob/master/screenshots/colors.png" width="142">

<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image1.png" width="500">

<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image2.png" width="500">

<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image3.png" width="500">

<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image4.png" width="500">

Support:

naif@naif.io

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

License

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