alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
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();


720 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

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