laravel null or empty code example
Example 1: laravel where is null
DB::table('users') ->whereNull('name') ->get();
Example 2: laravel where is null
DB::table('users')
->whereNull('first_name');
DB::table('users') ->whereNull('name') ->get();
DB::table('users')
->whereNull('first_name');