*/ class ServiceEntryFactory extends Factory { protected $model = ServiceEntry::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'report_period_id' => ReportPeriod::factory(), 'service_catalog_id' => ServiceCatalog::factory(), 'provider_department_id' => Department::factory(), 'recipient_department_id' => Department::factory(), 'quantity' => fake()->randomFloat(2, 0, 5000), 'unit_price' => fake()->randomFloat(2, 10, 10000), ]; } }