-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[11.x] Support Single and Multi-Selection for Publishing Stubs #53757
base: 11.x
Are you sure you want to change the base?
Conversation
I think we should limit this prompt to the most commonly customized stubs and give them human friendly names rather than file names. 👍 |
Couple of notes here... I think things like Controllers should probably be grouped like
That being said, the amount of controller stubs we have makes me sad and makes the menu feel a bit confusing 🥲 ... not sure what to do about that. There would be 12 entries just for controllers. |
This PR adds support for single and multi-selection using Laravel Prompts in the
stub:publish
artisan command.Screen.Recording.2024-12-04.at.10.43.23.AM.mov
The
stub:publish
command currently publishes all customizable stubs, which now includes 52 stubs. With this change, it adds flexibility for developers who only need to customize a few specific stubs.You can now choose which stubs to publish directly from a selection menu, making it easier to target just the stubs you need.
--all
Option: If you prefer to publish everything, the--all
flag skips the menu and works just like it does today.Examples:
Interactive Mode:
Simply run:
and select one or more stubs from the list:
End Result:
Publish All:
Use the --all flag to publish everything at once: