cara mendapatkan semua baris dari meja kecuali beberapa baris di Laravel
The 'whereNotIn' method of the DB Facade only accepts an array as second argument
$user = DB::table('users')->whereNotIn('id', [1])->get();
Said HR