-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Artisan Factory Create Command #4
Conversation
Hi Mehedi! Thank you for your time in this Pull Request. Please don't forget to follow these topics listed in the contribution guidelines: Coding Standard - To format the PHP code run Add tests! - Please always provide tests. Completing these steps, we can proceed with the Pull Request. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Please check the highlighted blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR introduces the artisan command of "php artisan modular:make-factory ModuleName FactoryName" command.
For example: "php artisan modular:make-factory Product ProductCategory". This will create a factory blueprint in "ModuleName/Database/Factories/ProductCategoryFactory.php".
The Factory code will be as follows:
The Factory will also be created while creating a brand new module.