What is the Laravel eloquent query for this:
select * from `jobs` where 1 between min_experience and max_experience;
I tried the below query but this one encapsulates the where 1 with single quotes.
Job::whereRaw('? between min_experience and max_experience',1)->get();
select * from `jobs` where '1' between min_experience and max_experience;
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire