added ownership

This commit is contained in:
Denis Duliçi
2021-06-17 10:59:07 +03:00
parent de0d26b803
commit a3572de1ec
54 changed files with 253 additions and 37 deletions

View File

@ -18,7 +18,7 @@ class Category extends Model
*
* @var array
*/
protected $fillable = ['company_id', 'name', 'type', 'color', 'enabled'];
protected $fillable = ['company_id', 'name', 'type', 'color', 'enabled', 'created_by'];
/**
* The attributes that should be cast.

View File

@ -19,7 +19,19 @@ class Currency extends Model
*
* @var array
*/
protected $fillable = ['company_id', 'name', 'code', 'rate', 'enabled', 'precision', 'symbol', 'symbol_first', 'decimal_mark', 'thousands_separator'];
protected $fillable = [
'company_id',
'name',
'code',
'rate',
'enabled',
'precision',
'symbol',
'symbol_first',
'decimal_mark',
'thousands_separator',
'created_by',
];
/**
* The attributes that should be cast.

View File

@ -11,8 +11,6 @@ class Setting extends Eloquent
protected $table = 'settings';
protected $tenantable = true;
/**
* Attributes that should be mass-assignable.
*

View File

@ -24,7 +24,7 @@ class Tax extends Model
*
* @var array
*/
protected $fillable = ['company_id', 'name', 'rate', 'type', 'enabled'];
protected $fillable = ['company_id', 'name', 'rate', 'type', 'enabled', 'created_by'];
/**
* The attributes that should be cast.