app->singleton(Generator::class, function () { $faker = Factory::create(); $faker->addProvider(new ProductNameProvider($faker)); $faker->addProvider(new CategoryNameProvider($faker)); return $faker; }); } }