laravel wherenotin

57

$users = DB::table('users')
            ->join('contacts', 'users.id', '=', 'contacts.user_id')
            ->join('orders', 'users.id', '=', 'orders.user_id')
            ->select('users.*', 'contacts.phone', 'orders.price')
            ->get();
$count = DB::table('category_issue')->count();
$users = User::whereNotIn('id', [1,2,3,4]);
$users = DB::table('users')
                ->whereMonth('created_at', '12')
                ->get();

Comments

Submit
0 Comments