mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 00:34:35 -04:00
Clean up models
This commit is contained in:
parent
e8d92f627d
commit
44a57b2679
@ -26,8 +26,6 @@ class Client extends BaseModel
|
|||||||
use Filterable;
|
use Filterable;
|
||||||
use GeneratesNumberCounter;
|
use GeneratesNumberCounter;
|
||||||
|
|
||||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
|
||||||
|
|
||||||
protected $presenter = 'App\Models\Presenters\ClientPresenter';
|
protected $presenter = 'App\Models\Presenters\ClientPresenter';
|
||||||
|
|
||||||
protected $appends = [
|
protected $appends = [
|
||||||
|
@ -4,7 +4,7 @@ namespace App\Models;
|
|||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class CompanyLedger extends Model
|
class CompanyLedger extends BaseModel
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||||
|
@ -15,8 +15,6 @@ class Document extends BaseModel
|
|||||||
'is_default',
|
'is_default',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
@ -13,9 +13,6 @@ class Expense extends BaseModel
|
|||||||
'id',
|
'id',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
|
||||||
|
|
||||||
|
|
||||||
protected $appends = ['expense_id'];
|
protected $appends = ['expense_id'];
|
||||||
|
|
||||||
public function getRouteKeyName()
|
public function getRouteKeyName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user