*/ class PrefixFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'slug' => $this->faker->unique()->randomElement(['blog', 'posts', 'news', 'p', 'articles']), ]; } }