- 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.
22 lines
331 B
PHP
22 lines
331 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CpePayment extends Model
|
|
{
|
|
protected $fillable = [
|
|
'cpe_id',
|
|
'amount',
|
|
'reference_period',
|
|
'payment_date',
|
|
'status',
|
|
];
|
|
|
|
public function cpe()
|
|
{
|
|
return $this->belongsTo(CPE::class);
|
|
}
|
|
}
|