[V6] Choose a path when creating a factory or seeder, as is currently the case for migrations #4770
LeBarbuCodeur
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm currently working on a project with the AdonisJS framework and I'd like to architect my project differently from what is proposed at installation. So I consulted the Lucid ORM documentation and I saw that it was possible to change the paths of ‘migrations’. Now when I create a migration, I can choose between the paths I've added in the configuration. Great!
To keep the current structure of the ‘database’ folder (‘database’ > ‘factories’ or ‘migrations’ or ‘seeders’), I thought it might be possible to do the same with factories and seeders.
I then consulted the Lucid ORM documentation, which suggests that you can add seeders' paths in the configuration, except that this functionality is documented but seem not implemented.
So I'm opening this issue to discuss 2 points:
Concerning seeders, add the functionality as indicated in the documentation, and be able to choose one of the paths added in configuration when creating.
For factories, add the functionality, be able to choose one of the paths added in configuration during creation and add the documentation.
I look forward to hearing from you! And many thanks for this fantastic framework!
Beta Was this translation helpful? Give feedback.
All reactions