Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update from query

$affected = DB::table('users')
              ->where('id', 1)
              ->update(['votes' => 1]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #update #query
ADD COMMENT
Topic
Name
8+2 =