Download the PHP package simplesquid/nova-enum-field without Composer
On this page you can find all versions of the php package simplesquid/nova-enum-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simplesquid/nova-enum-field
More information about simplesquid/nova-enum-field
Files in simplesquid/nova-enum-field
Package nova-enum-field
Short Description A Laravel Nova field to add enums to resources.
License MIT
Homepage https://github.com/simplesquid/nova-enum-field
Informations about the package nova-enum-field
An enum field for Laravel Nova
Laravel Nova field to add enums to resources. This field uses the BenSampo/laravel-enum package, so make sure to check out the installation instructions there first.
Installation
You can install this package in a Laravel app that uses Nova via composer:
Setup
It is strongly recommended that you use Attribute Casting in your models. From the docs at BenSampo/laravel-enum, this can be done like this:
Usage
You can use the Enum
field in your Nova resource like this:
Flagged Enums
You can use the FlaggedEnum
field in your Nova resource like this (see Flagged/Bitwise Enum setup):
Filters
If you would like to use the provided Nova Select filter (which is compatible with both the Enum
and FlaggedEnum
fields), you can include it like this:
Alternatively, you may wish to use the provided Nova Boolean filter (which is also compatible with both the Enum
and FlaggedEnum
fields):
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Matthew Poulter
- Ben Sampson
- atymic
- Robin D'Arcy
- Antoni Siek
- All Contributors
Package skeleton based on spatie/skeleton-php.
About us
SimpleSquid is a small web development and design company based in Valkenburg, Netherlands.
License
The MIT License (MIT). Please see License File for more information.
All versions of nova-enum-field with dependencies
bensampo/laravel-enum Version ^5.0 || ^6.0
illuminate/support Version ^10.0 || ^11.0
laravel/nova Version ^4.0