Skip to content

Database factory, seeder and resource model_schemas should all respect scaffold --prefix #1069

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
billysmithers opened this issue Mar 3, 2023 · 1 comment

Comments

@billysmithers
Copy link
Contributor

When using the --prefix from the scaffold command.

Controllers, Requests, Models and Views respect the prefix.

However Database factories and seeders do not, this would be a case of merging the namespace prefix.

This is particularly of need to factories as Laravel convention for model discovery from the factory maps the factory namespace to the model namespace.

model_schemas could merge the views prefix.

@billysmithers
Copy link
Contributor Author

Model schemas looks to need some consideration so have left that off this PR.

This PR includes prefixes for the factory and seeder generation config - #1072

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

No branches or pull requests

1 participant