added company model boot function try catch..

This commit is contained in:
Cüneyt Şentürk 2022-03-02 18:00:31 +03:00
parent 2fa5b599a2
commit 48fb23bb50

View File

@ -286,6 +286,7 @@ class Company extends Eloquent implements Ownable
public function setCommonSettingsAsAttributes()
{
try { // TODO will optimize..
$settings = $this->settings;
$groups = [
@ -314,10 +315,14 @@ class Company extends Eloquent implements Ownable
if ($this->getAttribute('logo') == '') {
$this->setAttribute('logo', 'public/img/company.png');
}
} catch(\Throwable $e) {
}
}
public function unsetCommonSettingsFromAttributes()
{
try { // TODO will optimize..
$settings = $this->settings;
$groups = [
@ -337,6 +342,9 @@ class Company extends Eloquent implements Ownable
}
$this->offsetUnset('logo');
} catch(\Throwable $e) {
}
}
/**