added update to company and setting #1902

This commit is contained in:
Denis Duliçi 2021-03-06 11:44:28 +03:00
parent 7b9c9e8403
commit 645a92c463
2 changed files with 28 additions and 0 deletions

View File

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

View File

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