kilroyweb / options
Class-based select options for Laravel
1.0.6
2017-10-05 14:10 UTC
This package is not auto-updated.
Last update: 2024-11-20 00:38:45 UTC
README
Please instead use https://github.com/binarycabin/options
Options
Class-based select options for Laravel
Installation
Add to providers:
KilroyWeb\Options\Providers\OptionServiceProvider::class,
publish config:
php artisan vendor:publish --tag=config
Generate Permissions
php artisan make:option CLASSNAME
ie:
php artisan make:option County
Display the option
$field->options(\App\Options\County::get('---')) !!}