I have a method with two incoming arrays. The first array $columns[] contains columns names. The second one $filters[] contains search filters. How can I sort through all the values of these columns using only one search query? I can not figure out how this is done through "Eloquent". I want generate something like this:
$data::where($columns[0], '=', $filters[0])
->where($columns[1], '=', $filters[1])
...
->where($columns[n], '=', $filters[n])
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iPlGzl
via IFTTT
Aucun commentaire:
Enregistrer un commentaire