Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel forcefill

 /**
  * Update and return record.
  *
  * @param Model $record
  * @param array $data
  *
  * @return Model
  */
 public function update(Model $record, $data = [])
 {
     $record->forceFill($data)->save();
     return $record;
 }
Source by hotexamples.com #
 
PREVIOUS NEXT
Tagged: #laravel #forcefill
ADD COMMENT
Topic
Name
7+2 =