I have a weird problem and can't understand why it happens.
I have a table where row has start = 300 and end = 400.
When I try to filter:
$price = 320;
Price::where('start', '>=', $price)->where('end', '<=', $price)->first()
And I have always an empty result. All columns set to an integer. '$price' is an integer. Why I get an empty result, have no idea...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire