fix tests
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class InvoiceEvent extends BaseModel
|
||||
{
|
||||
protected $table = 'invoice_event';
|
||||
@@ -24,9 +22,9 @@ class InvoiceEvent extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'invoice_id' => 'integer',
|
||||
'amount' => 'decimal:2', // adjust precision if needed
|
||||
'updated_by' => 'integer',
|
||||
'invoice_id' => 'integer',
|
||||
'amount' => 'decimal:2', // adjust precision if needed
|
||||
'updated_by' => 'integer',
|
||||
];
|
||||
|
||||
/* Optional relationships */
|
||||
@@ -39,4 +37,4 @@ class InvoiceEvent extends BaseModel
|
||||
{
|
||||
return $this->belongsTo(User::class, 'updated_by');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user