Merge pull request #1902 from SevanNerse/dev
allAttributes should be filled on update processes
This commit is contained in:
commit
5b11d9f507
@ -36,6 +36,20 @@ abstract class Model extends Eloquent
|
|||||||
parent::__construct($attributes);
|
parent::__construct($attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the model in the database.
|
||||||
|
*
|
||||||
|
* @param array $attributes
|
||||||
|
* @param array $options
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function update(array $attributes = [], array $options = [])
|
||||||
|
{
|
||||||
|
$this->allAttributes = $attributes;
|
||||||
|
|
||||||
|
return parent::update($attributes, $options);
|
||||||
|
}
|
||||||
|
|
||||||
public static function observe($classes)
|
public static function observe($classes)
|
||||||
{
|
{
|
||||||
parent::observe($classes);
|
parent::observe($classes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user