Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel model where set fields laravel



$table->update(['field' => 'val']);


or
  
  
ModelName::query()->where('column_name','any_value')->update(['field' => 'val']);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #model #set #fields #laravel
ADD COMMENT
Topic
Name
1+4 =