Answers for "laravel model where set fields laravel"

PHP
0

laravel model where set fields laravel

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


or
  
  
ModelName::query()->where('column_name','any_value')->update(['field' => 'val']);
Posted by: Guest on August-14-2021

Browse Popular Code Answers by Language