/** * Update and return record. * * @param Model $record * @param array $data * * @return Model */ public function update(Model $record, $data = []) { $record->forceFill($data)->save(); return $record; }