30 lines
634 B
PHP
30 lines
634 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Department;
|
|
use App\Models\MedicationExpenseRow;
|
|
use App\Models\ReportPeriod;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<MedicationExpenseRow>
|
|
*/
|
|
class MedicationExpenseRowFactory extends Factory
|
|
{
|
|
protected $model = MedicationExpenseRow::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'report_period_id' => ReportPeriod::factory(),
|
|
'department_id' => Department::factory(),
|
|
];
|
|
}
|
|
}
|