how to search the null value in array that get from db in laravel controller code example Example: laravel query not null DB::table('users') ->whereNotNull('name') ->get();