laravel-generator
laravel-generator copied to clipboard
Factory not generating when factory option is true
Hi,
When I was trying to generate factory for a model, I set factory option to true inside the config/laravel_generator.php
, but failed to call factory
method for model.
After investigating, found out that the code is triggered by test
option, not factory
option.
Is it designed intentionally, or it is typo or something?
Source:
https://github.com/InfyOmLabs/laravel-generator/blob/453d1d364a13b44f7b424dd4cea2c296402db429/views/model/model.blade.php#L9
https://github.com/InfyOmLabs/laravel-generator/blob/453d1d364a13b44f7b424dd4cea2c296402db429/views/model/model.blade.php#L15