diff --git a/app/Models/Common/Company.php b/app/Models/Common/Company.php index 82a11f2ce..7143b57f3 100644 --- a/app/Models/Common/Company.php +++ b/app/Models/Common/Company.php @@ -50,6 +50,20 @@ class Company 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 boot() { parent::boot(); diff --git a/app/Models/Setting/Setting.php b/app/Models/Setting/Setting.php index 67ecd359b..c2c6c0b9e 100644 --- a/app/Models/Setting/Setting.php +++ b/app/Models/Setting/Setting.php @@ -37,6 +37,20 @@ class Setting 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 function company() { return $this->belongsTo('App\Models\Common\Company');