*/ class CatFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition() { return [ // 'name' => $this->faker->word, 'slug' => StarterKitFacade::slug($this->faker->unique()->word), 'parent_id' => null, 'sort' => 0, 'description' => $this->faker->realText(350), ]; } }