From bf218521c18a9c5e11d8b8038ca2c7bc9f35c3ea Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Wed, 3 Mar 2021 15:03:43 +0300 Subject: [PATCH] allAttributes should be filled on update processes --- app/Abstracts/Model.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Abstracts/Model.php b/app/Abstracts/Model.php index 4e08b2281..6b2f8482f 100644 --- a/app/Abstracts/Model.php +++ b/app/Abstracts/Model.php @@ -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);