*/ final class ConceptFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Concept::class; /** * Define the model's default state. * * @return array */ public function definition(): array { $name = fake()->unique()->firstname; return [ 'seo_title' => fake()->word, 'seo_description' => fake()->text, 'name' => $name, 'slug' => Str::slug($name), 'title' => fake()->word, 'subtitle' => fake()->word, 'description' => fake()->text, 'picture_alt' => fake()->word, 'picture_title' => fake()->word, ]; } }