Skip to content

Fix native:seed command #680

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

gwleuverink
Copy link
Contributor

The base SeedCommand class expects some input to be set. This caused the native:seed command to error.

I've added the database input option under the hood. The base command was expecting this input to be present but we don't want this to be altered by the dev. So I've put that in the handle method ( also so it won't show up when using --help).

The class argument I've put in the configure method. I've added it both as an argument & an option so the command signature is similar to laravel's db:seed command.

Fixes #677

@gwleuverink gwleuverink requested a review from a team August 16, 2025 06:48
@gwleuverink gwleuverink self-assigned this Aug 16, 2025
@gwleuverink gwleuverink added the bug Something isn't working label Aug 16, 2025
Copy link
Member

@SRWieZ SRWieZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native seed is not working
2 participants