Answer the question
In order to leave comments, you need to log in
How to create such a database query in Laravel?
Good afternoon.
I have a SQL query
select * from offers where category_id = 2 and (is_active = true or is_archive = true);
$offers = Offer::where('category_id',$activeCat->id)->get();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question