Laravel nie w zapytaniu
DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Lokesh003
DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
$result = Exams::whereNotIn('id', function($q){
$q->select('examId')->from('testresults');
})->get();