*/ class ServiceFactory extends Factory { protected $model = ServiceModel::class; /** * @return array */ public function definition(): array { return [ 'service_unit_id' => ServiceUnitModel::factory(), 'name' => fake()->unique()->words(2, true), 'is_active' => true, 'sort_order' => fake()->unique()->numberBetween(100, 100000), ]; } }