Recommend this page to a friend! |
Download |
Info | Documentation | Screenshots | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 35 | All time: 11,003 This week: 455 |
Version | License | PHP version | Categories | |||
toggle-switch 1.0 | Custom (specified... | 5 | HTML, PHP 5, Libraries, Content manag... |
Description | Author | |
This package provides a toggle control to use in Laravel Nova. |
A Laravel Nova toggle switch field
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/toggle
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">
naif@naif.io
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
Screenshots (5) | ||
Files (20) |
File | Role | Description | ||
---|---|---|---|---|
dist (2 directories) | ||||
resources (2 directories) | ||||
src (2 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
mix-manifest.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
webpack.mix.js | Data | Auxiliary data |
Files (20) | / | resources | / | js | / | components |
File | Role | Description |
---|---|---|
DetailField.vue | Data | Auxiliary data |
FormField.vue | Data | Auxiliary data |
IndexField.vue | Data | Auxiliary data |
Files (20) | / | src |
File | Role | Description |
---|---|---|
FieldServiceProvider.php | Class | Class source |
Toggle.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.