Repository navigation
[5.x] Allow specifying a user's name non-interactively when running make:user - #12017
Closed
Jamesking56 wants to merge 2 commits into
Closed
Jamesking56 wants to merge 2 commits into
Jamesking56 wants to merge 2 commits into
Conversation
Jamesking56
marked this pull request as ready for review
August 3, 2025 17:44
jasonvarga
requested changes
Aug 4, 2025
jasonvarga
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR:
- The
first_namegets saved astrue, not what they entered. - The 3 name options should be optional.
- The tests shouldn't need
--nameadded to them (the errors you encountered were because you made the options required).
Contributor
Author
The original issue shows that the reason the current code doesn't work is because the name field is required to be set in order to create a user. If they don't set one in the command, what should the name field be set to? |
Member
|
I wouldn't say it's a problem with this command then. The name columns should allow nulls. You could create a migration in your app to change the $table->string('name')->nullable()->change();Maybe our |
Member
|
If you'd like to make the changes, feel free, and we can reopen and merge the PR. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11951
This allows the user to specify a name for the new user when running
make:usercommand non-interactively. To test, you can now run:Before this PR, this would result in an error detailed in the issue. This PR fixes this by allowing the name to be specified.