1//laravel
2// here, i have used two different where condition on a single column
3$today = Carbon::today();
4$data = Users::where('type',1)
5 ->where(function($query) use ($today) {
6 return $query->whereDate('updated_at','!=', $today)
7 ->orWhere('updated_at',null);
8 })
9 ->get();