plugin
plugin copied to clipboard
[Feature Request]: Rename component action
Feature Description
I find the automatic creation of components incredibly convenient. However, I miss the refactoring feature to quickly rename a component or move it to another location.
Let's say I want to move a component from \App\Components\PostContent to \App\Components\Post\Content
What I need now is:
- Change the namespace.
- The IDE will offer to move the file to the appropriate folder.
- Use IDE refactoring to rename the class.
- The IDE will also prompt you to change the file name.
- The IDE will NOT rename
to <x-post.content/> on its own. You have to manually search the project and rename the changed component. - Use IDE refactoring to change the name of the template blade file. The call to the template blade in the component class will change automatically.
- Manually create a post folder for the blade template and move the file there.
- The IDE will NOT change the blade template call from the new location. You need to do this manually.
This process is the same for all components and is monotonous. I really wish the development tools could do this for me, especially since all the naming conventions are known in advance.
I hope we will implement it, but I can't make any estimates.