Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel eloquent mass update

Flight::where('active', 1)
      ->where('destination', 'San Diego')
      ->update(['delayed' => 1]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #eloquent #mass #update
ADD COMMENT
Topic
Name
8+7 =