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