Package Data | |
---|---|
Maintainer Username: | kilroyweb |
Package Create Date: | 2017-03-09 |
Package Last Update: | 2019-03-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 15:02:35 |
Package Statistics | |
---|---|
Total Downloads: | 312 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Please instead use https://github.com/binarycabin/options
Class-based select options for Laravel
Add to providers:
KilroyWeb\Options\Providers\OptionServiceProvider::class,
publish config:
php artisan vendor:publish --tag=config
php artisan make:option CLASSNAME
ie:
php artisan make:option County
$field->options(\App\Options\County::get('---')) !!}