mcmatters/laravel-factory-generators

v1.1 2020-06-13 20:56 UTC

This package is auto-updated.

Last update: 2024-11-14 06:42:27 UTC


README

Generate factories for all non-created factories of models.

Installation

composer require mcmatters/laravel-factory-generators

Include the service provider within your config/app.php file.

'providers' => [
    McMatters\FactoryGenerators\ServiceProvider::class,
]

Publish the configuration.

php artisan vendor:publish --provider="McMatters\FactoryGenerators\ServiceProvider"

Then open the config/factory-generators.php and configure paths where your models are locating.

Advanced configuration

Usage

Just run the command php artisan factory:generate.