*/ class ReportStepFactory extends Factory { /** * The name of the factory's corresponding model. * * @var class-string */ protected $model = ReportStep::class; /** * Define the model's default state. * * @return array */ public function definition(): array { $action = Arr::random(ReportActionType::cases()); $status = Arr::random(ApprovableStatus::cases()); return [ ReportStep::ATTRIBUTE_ACTION => $action->value, ReportStep::ATTRIBUTE_STATUS => $status->value, ]; } }