add default with company and item models
This commit is contained in:
parent
d50daa3fd8
commit
acf002f35d
@ -27,6 +27,8 @@ class Company extends Eloquent implements Ownable
|
|||||||
|
|
||||||
protected $table = 'companies';
|
protected $table = 'companies';
|
||||||
|
|
||||||
|
protected $with = ['settings'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The accessors to append to the model's array form.
|
* The accessors to append to the model's array form.
|
||||||
*
|
*
|
||||||
|
@ -16,6 +16,13 @@ class Item extends Model
|
|||||||
|
|
||||||
protected $table = 'items';
|
protected $table = 'items';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The relationships that should always be loaded.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $with = ['taxes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The accessors to append to the model's array form.
|
* The accessors to append to the model's array form.
|
||||||
*
|
*
|
||||||
|
@ -15,6 +15,13 @@ class DocumentItem extends Model
|
|||||||
|
|
||||||
protected $table = 'document_items';
|
protected $table = 'document_items';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The relationships that should always be loaded.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $with = ['taxes'];
|
||||||
|
|
||||||
protected $appends = ['discount'];
|
protected $appends = ['discount'];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user