I have a problem with whereBetween when i use like this:
if($key == "area"){
$query->whereBetween('area',$option);
}
In $option i get like this:
array:2 [▼
0 => "0"
1 => "300000"
]
When i use like this it works:
if($key == "area"){
$query->whereBetween('area',["0","300000"]);
}
Any suggesion why is this not working with $option?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kRB5ON
via IFTTT
Aucun commentaire:
Enregistrer un commentaire