Download the PHP package jeffersonsimaogoncalves/nova-enum-field without Composer
On this page you can find all versions of the php package jeffersonsimaogoncalves/nova-enum-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersonsimaogoncalves/nova-enum-field
More information about jeffersonsimaogoncalves/nova-enum-field
Files in jeffersonsimaogoncalves/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 Cape Town, South Africa.
License
The MIT License (MIT). Please see License File for more information.
All versions of nova-enum-field with dependencies
laravel/nova Version ^4.0
bensampo/laravel-enum Version ^3.1|^4.0|^5.0
illuminate/support Version ^8.0|^9.0