- Created ExampleTest and RoutesTest for basic application response and route testing. - Implemented IsolatedDatabaseTestCase for isolated database testing. - Added unit tests for various models and services including Contract, CPE, and LeadDetail. - Developed request validation tests for CreateClientRequest, UpdateClientRequest, and ContractRequest. - Introduced Vite configuration for asset management in the Laravel application.
23 lines
369 B
PHP
23 lines
369 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ContractInstallment extends Model
|
|
{
|
|
protected $fillable = [
|
|
'contract_id',
|
|
'installment_number',
|
|
'amount',
|
|
'due_date',
|
|
'paid',
|
|
'paid_at'
|
|
];
|
|
|
|
public function contract()
|
|
{
|
|
return $this->belongsTo(Contract::class);
|
|
}
|
|
}
|