how to check it is null or not in laravel code example
Example 1: check if value is not null in db laravel
Model::whereNotNull('sent_at')
Example 2: laravel where is null
DB::table('users') ->whereNull('name') ->get();
Model::whereNotNull('sent_at')
DB::table('users') ->whereNull('name') ->get();