upgraded to laravel 10

This commit is contained in:
Denis Duliçi
2023-03-16 16:36:13 +03:00
parent f16d121c45
commit 37b0d4207e
34 changed files with 843 additions and 866 deletions

View File

@ -33,8 +33,9 @@ class Account extends Model
* @var array
*/
protected $casts = [
'opening_balance' => 'double',
'enabled' => 'boolean',
'opening_balance' => 'double',
'enabled' => 'boolean',
'deleted_at' => 'datetime',
];
/**

View File

@ -26,9 +26,10 @@ class Reconciliation extends Model
* @var array
*/
protected $casts = [
'closing_balance' => 'double',
'reconciled' => 'boolean',
'transactions' => 'array',
'closing_balance' => 'double',
'reconciled' => 'boolean',
'transactions' => 'array',
'deleted_at' => 'datetime',
];
/**

View File

@ -30,8 +30,6 @@ class Transaction extends Model
protected $table = 'transactions';
protected $dates = ['deleted_at', 'paid_at'];
/**
* Attributes that should be mass-assignable.
*
@ -64,8 +62,10 @@ class Transaction extends Model
* @var array
*/
protected $casts = [
'amount' => 'double',
'currency_rate' => 'double',
'paid_at' => 'datetime',
'amount' => 'double',
'currency_rate' => 'double',
'deleted_at' => 'datetime',
];
/**