Merge branch 'develop' into feature/server-transfers-actually
This commit is contained in:
commit
7b518325c4
4 changed files with 105 additions and 0 deletions
|
@ -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.
|
||||
|
|
Reference in a new issue