Closed Daanra closed 3 years ago
I think adding the option to have route names completion for JavaScript functions would be a great addition
Agree )
When implementing this, an option to say what method name should be considered a route method would be great.
That would deal with something like import laravelRoute from 'my-route-package';
It should work in the 4.4 version. Full list of changes - https://laravel-idea.com/blog/2021/4-4-release
Please write here if something isn't working.
The route names completion functionality is awesome!
I think it would be even better if it could be extended to JavaScript / Vue files. I personally use Ziggy to get a JavaScript
route
function that behaves very similar to Laravel'sroute
function.I also inject this as a global function in my Vue instance such that I can use it like so:
I think adding the option to have route names completion for JavaScript functions would be a great addition :smile: