allAttributes should be filled on update processes

This commit is contained in:
Sevan Nerse 2021-03-03 15:03:43 +03:00
parent cd71409bb6
commit bf218521c1

View File

@ -36,6 +36,20 @@ abstract class Model extends Eloquent
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)
{
parent::observe($classes);