You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for bringing up this issue regarding the HasFactory trait not being included when using the php artisan make:model --all command. I wanted to let you know that I have addressed this issue in my pull request.
You can review the changes I've made to ensure that the HasFactory trait is included when generating models with the --all option.
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Laravel Version
11.x
PHP Version
8.3.4
Database Driver & Version
No response
Description
As #53104 discussed, it removes
HasFactory
if we are not generating a factory at all.But
HasFactory
didn't include in Model when use the command make:model --all or -acommand
output
command
output
Steps To Reproduce
or
The text was updated successfully, but these errors were encountered: