this makes possible adding extra attributes to models
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user