*/ class ActionFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->unique()->words(2, true), 'color_tag' => $this->faker->optional()->safeColorName(), 'segment_id' => Segment::factory(), ]; } }