faker->unique()->words(2, true); return [ 'name' => Str::title($name), 'slug' => Str::slug($name.'-'.$this->faker->unique()->randomNumber()), 'sku' => strtoupper($this->faker->unique()->bothify('PRD-#####')), 'cost_price' => $this->faker->numberBetween(20000, 150000), 'sale_price' => $this->faker->numberBetween(30000, 200000), ]; } public function withDescription(): Factory { return $this->state(fn () => ['description' => $this->faker->paragraph()]); } }