lundi 15 octobre 2018

Eloquent multiple where with higher and lower then same value

I can't get results for the following Eloquent query:

return 
  Cost::where('zipcode_start', '>=', 8000)
  ->where('zipcode_end', '<=', 8000)
  ->pluck('price);

In that costs table I have some prices that depends on the range that a Zipcode that's given is in.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire