kilroyweb / options by kilroyweb

Class-based select options for Laravel
312
0
1
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

Package Has Moved

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('---')) !!}