first commit
This commit is contained in:
29
database/factories/MedicationExpenseRowFactory.php
Normal file
29
database/factories/MedicationExpenseRowFactory.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user