Reputation: 496
I installed composer require nwidart/laravel-modules
package in my project.
I created Transaction modules and I want to create a factory, How to use it?
php artisan module:make-factory TransactionFactory Transaction
Upvotes: 0
Views: 1227
Reputation: 464
First, you should create a factory:
php artisan module:make-factory FactoryName Blog
Second, load your factory to the provider.stub
(provider.stub)
Third, use this command:
php artisan module:seed
Upvotes: 1