Skip to content
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

Add stub option to make command #101

Closed
wants to merge 3 commits into from

Conversation

inmanturbo
Copy link

@inmanturbo inmanturbo commented Mar 21, 2024

Depends on laravel/framework#50709

Usage:

Supports passing either the name of a stub, or full path to a stub as an option

php artisan make:volt "todos/create" --stub="volt-create-form"

Will find and use base_path('stubs/volt-create-form.stub') if it exists.

php artisan make:volt "todos/create" \
  --stub="/home/taylor/stubs/volt/forms/create-form.stub"

will find and use /home/taylor/stubs/volt/forms/create-form.stub if it exists.

If it cannot find a stub under the name or path, it will ignore the option altogether and behave as it always has.

@inmanturbo inmanturbo changed the title Add stub option Add stub option to make command Mar 21, 2024
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

Successfully merging this pull request may close these issues.

1 participant