BKWLD / decoy

A Laravel model-based CMS
http://docs.decoy.bukwild.com/
MIT License
303 stars 44 forks source link

custome search #82

Closed berbagimadani closed 7 years ago

berbagimadani commented 7 years ago

how custome search filter ?

how get data in eloquent model, not static array 'options' => 'App\JobDescription::$categories',

weotch commented 7 years ago

Check out the search() function you can define in your controller, as described here: https://github.com/BKWLD/decoy/blob/master/docs/controllers.md#search-property. You can fetch your eloquent models, map to a key-val hash, and provide it as the options value.