check if column is null function object laravel code example
Example: check if column has value in laravel eloquent
->where(function ($query) {
$query->whereNull('exam_ends_at')
->orWhere('exam_ends_at', '>', Carbon::now());
})
->where(function ($query) {
$query->whereNull('exam_ends_at')
->orWhere('exam_ends_at', '>', Carbon::now());
})