Quick Inquiry

Where query with multiple conditions in Laravel ?

Where query with multiple conditions in Laravel ?

Q) Is it possible to use the where query with multiple conditions in Laravel?

In Laravel You can write  multiple conditions in a single WHERE clause to retrieve data based on the values in multiple columns.

Model::where(function ($q) { $q->where('is_visible_at ','<=',Carbon::now())->orWhere('is_visible_at ', null); })->get();

(+91) 8130 640966

Mon-Sat : 9.00 am - 8.00 pm

Click to Mail us

18 Hours Real Time Support

New Delhi, India

Okhla Phase-I New Delhi 110020

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online