how to check the value is null or not is 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('first_name');
Model::whereNotNull('sent_at')
DB::table('users')
->whereNull('first_name');