Merge pull request #1902 from SevanNerse/dev

allAttributes should be filled on update processes
This commit is contained in:
Denis Duliçi 2021-03-03 15:07:08 +03:00 committed by GitHub
commit 5b11d9f507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);