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();
* Be the first to Make Comment