first commit
This commit is contained in:
26
database/factories/MedicalReportFactory.php
Normal file
26
database/factories/MedicalReportFactory.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\MedicalReport;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<MedicalReport>
|
||||
*/
|
||||
class MedicalReportFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => sprintf('МЕД %s', fake()->unique()->numberBetween(2026, 2035)),
|
||||
'year' => 2026,
|
||||
'input_overrides' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user