sub query in laravel where code example Example: laravel not in query DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();