faker->unique()->words(2, true); return [ 'brand_id' => Brand::factory(), 'name' => Str::title($name), 'slug' => Str::slug($name.'-'.$this->faker->unique()->randomNumber()), 'sku' => strtoupper($this->faker->unique()->bothify('PER-#####')), 'concentration' => $this->faker->randomElement(Concentration::cases()), 'cost_price' => $this->faker->numberBetween(50000, 250000), 'sale_price' => $this->faker->numberBetween(80000, 400000), 'point_per_ml' => $this->faker->numberBetween(1, 30), 'base_notes' => $this->faker->optional()->words(3, true), 'middle_notes' => $this->faker->optional()->words(3, true), 'top_notes' => $this->faker->optional()->words(3, true), 'description' => $this->faker->optional()->paragraph(), ]; } public function extrait(): Factory { return $this->state(fn () => ['concentration' => Concentration::EXTRAIT_DE_PERFUME]); } public function eauDeParfum(): Factory { return $this->state(fn () => ['concentration' => Concentration::EAU_DE_PERFUME]); } }