changes 0328092025
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\ClientCase;
|
||||
use App\Models\ContractType;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -17,7 +19,12 @@ class ContractFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'reference' => $this->faker->optional()->bothify('REF-####'),
|
||||
'start_date' => $this->faker->date(),
|
||||
'end_date' => $this->faker->optional()->date(),
|
||||
'client_case_id' => ClientCase::factory(),
|
||||
'type_id' => ContractType::factory(),
|
||||
'description' => $this->faker->optional()->sentence(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user