Support the dot in the make:volt command #140
Merged
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.
Hi,
looking over Caleb Porzio's Livewire screencasts today, I noticed that the
make:voltcommand doesn't support the dot notation, that is already present inmake:livewirecommand.Here's an example of both outputs:
# Using the regular slash notation php artisan make:volt component/index INFO Volt component [resources/views/livewire/component/index.blade.php] created successfully.# Using the dot notation in make:livewire php artisan make:livewire component.index COMPONENT CREATED 🤙 CLASS: app/Livewire/Component/Index.php VIEW: resources/views/livewire/component/index.blade.phpI thought this would be a nice alignment to the way things operate. I tried to make the changes as minimal as possible and updated the tests as well.
Hope this does the trick and gets merged, but even if it doesn't I would love to see it supported.
Kind regards,
g