Add endpoints required to store the results of a backup

This commit is contained in:
Dane Everitt 2020-04-04 16:07:09 -07:00
parent ad9194a65c
commit 15b436d26e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 104 additions and 0 deletions

View file

@ -177,6 +177,18 @@ abstract class EloquentRepository extends Repository implements RepositoryInterf
return ($this->withFresh) ? $instance->fresh() : $saved;
}
/**
* Update a model using the attributes passed.
*
* @param array|\Closure $attributes
* @param array $values
* @return int
*/
public function updateWhere($attributes, array $values)
{
return $this->getBuilder()->where($attributes)->update($values);
}
/**
* Perform a mass update where matching records are updated using whereIn.
* This does not perform any model data validation.