Where Null Query

DB::table('users')->whereNull('name')->get();

Where Not Null Query

DB::table('users')->whereNotNull('name')->get();

BY Best Interview Question ON 06 Aug 2019