mcmatters / laravel-factory-generators
v1.1
2020-06-13 20:56 UTC
Requires
- php: >=7.0
- composer/composer: ^1.5
- doctrine/dbal: ^2.5
- illuminate/config: ^5.2 || 6.* || 7.*
- illuminate/console: ^5.2 || 6.* || 7.*
- illuminate/database: ^5.2 || 6.* || 7.*
- illuminate/filesystem: ^5.2 || 6.* || 7.*
- illuminate/support: ^5.2 || 6.* || 7.*
Requires (Dev)
- fzaninotto/faker: ~1.4
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
.