how to use where not null in laravel eloquent code example Example: laravel query not null DB::table('users') ->whereNotNull('name') ->get();