10000 [Request] Allow seeding with --bench, --path or --package option · Issue #75 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[Request] Allow seeding with --bench, --path or --package option #75

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

Closed
duellsy opened this issue Jan 17, 2013 · 2 comments
Closed

[Request] Allow seeding with --bench, --path or --package option #75

duellsy opened this issue Jan 17, 2013 · 2 comments

Comments

@duellsy
Copy link
Contributor
duellsy commented Jan 17, 2013

I'm creating a package at the moment, which relies on a table being created via a migration, however this table needs to be prefilled with a standard set of data that will be used when connecting to the 3rd party site. So initially I thought I'd be able to just create a seeds folder inside my package and add the data as an array in there, however it seems that I can't run this seed since it's not in the location that db:seed looks.

So, my request is that the user be able to add the flag of --package or --bench, just like when running migrations, so they can seed the table created by the package.

@bencorlett
Copy link
Contributor

+100 for all 3 options like migrating :)

@taylorotwell
Copy link
Member

This is essentially possibly by using --class switch on the new seed setup.

gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
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

3 participants
0