$this->faker->unique()->name(), 'slug' => $this->faker->slug(), 'description' => $this->faker->optional()->text(), 'sort_order' => function () { $max = Category::max('sort_order') ?? 0; return $max + 1; }, ]; } }