How to change automatically the old routing style of Laravel to the new style in Laravel 9 with vscode?

122 views Asked by At

Hello I am facing a problem which is to change the old routing style of a laravel project to the new style. But due to the size of my routing file it will take me a lot of time to change all this. So I would like a sample regex code to use find/replace fonction into vscode to do it automatically.

Old style image :

enter image description here

Image new style wanted:

enter image description here

1

There are 1 answers

0
Wendinmi On

I found the solution by using the find/replace function of vscode like this

enter image description here