Laravel eloquent mass update

58

Laravel eloquent mass update -

Flight::where('active', 1)
      ->where('destination', 'San Diego')
      ->update(['delayed' => 1]);

Comments

Submit
0 Comments