When you type your class management with a fabricator in your projects, you won't have any problems about their management and replacement. This is yours it will allow you to increase your code quality and automatically create your factory classes. The other benefit of this package is it gives ease of use, as your factory classes are closely linked to annotations. The replaceable version of a factory manufacturer is also included in the package.
$ composer require aligurbuz/laravel-fabricator
Laravel service provider: After installing the package via the composer, you must add the following class to the providers section of the config/app.php file as the laravel service provider installer.
'providers' => [
/*
* Package Service Providers...
*/
Fabricator\LaravelFabricatorServiceProvider::class,
]