Skip to content
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

Fields on resource file generated from database table are ordered alphabetically #160

Open
unknownbreakdown opened this issue May 19, 2020 · 0 comments

Comments

@unknownbreakdown
Copy link

unknownbreakdown commented May 19, 2020

Before you submit an issue please read this

This repository is only for reporting bugs or issues. If you need support, please use Stack Overflow using laravel-code-generator tag (https://stackoverflow.com/questions/tagged/laravel-code-generator)

Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.

Environment:

  • Laravel-Code-Generator Version: 2.4
  • Laravel Version: 6.2

Description:

Fields on resource file generated from database table are ordered alphabetically. On previous version the fields were ordered as on the database table, as it should.

Update:

Verified that this issue only happens when the command:

php artisan resource-file:from-database ModelName --translation-for=en,es

is run again to overwrite a previously created resource file, and doesn't matter if --force flag is applied or the previously generated file is removed before.

Steps/Commands To Reproduce:

Content Of The Resource-File:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant