I want to make a query like this
SELECT * FROM batches WHERE id = 20 AND status = 3 OR status = 8
I tried following query but it returning me all records with status = 8
Batch::where('id', 20)->where('status','3')->orwhere('status','8');
What mistake did I make?
Thanks in advance!