write sql query with QUERY Builder laravel code example Example: wherein laravel DB::table('user')->whereIn('id', [100,200])->get();