this makes possible adding extra attributes to models

This commit is contained in:
Sevan Nerse
2021-02-26 15:38:45 +03:00
parent 19093668ec
commit 962e626c9e
16 changed files with 139 additions and 43 deletions

View File

@ -13,8 +13,6 @@ class Setting extends Eloquent
protected $tenantable = true;
public $timestamps = false;
/**
* Attributes that should be mass-assignable.
*
@ -22,6 +20,12 @@ class Setting extends Eloquent
*/
protected $fillable = ['company_id', 'key', 'value'];
public $extras = [
//
];
public $timestamps = false;
public function company()
{
return $this->belongsTo('App\Models\Common\Company');