Skip to content

Conversation

@morpheus7CS
Copy link
Contributor

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 in make:livewire command.

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 with the current setup
# This fails to create component/index, but rather creates component.index.blade.php

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.php 

I 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

@morpheus7CS
Copy link
Contributor Author

Seems the Github Actions are unable to run the Windows tests , so this is why checks are still failing. 🤔

@taylorotwell taylorotwell merged commit a7e6562 into livewire:main Aug 6, 2025
10 of 19 checks passed
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.

2 participants