I just came with a solution. Using "php artisan route:clear" solve my problem. But as I saw in tutorial videos people are not using "php artisan route:clear" to auto generate typescript. So how can I autoclear route cache when having wayfinder ?
Is Wayfinder using a cache for auto-generation ?
Hello, I am trying Wayfinder that looks pretty awesome. I could easily install it and generate file. I also added it in my vite config to generate on the fly but it seems there is an issue on my side because If i make some changes in method names, or even add new method the changes are not reflected on typescript side :
As you can see everytime I change a php file in my model/controller/route here is the vite log showing vite-plugin-wayfinder is executing.
I also tried to remove all the Wayfinder generated folders, execute wayfinder:generate All files are regenerated successfully but my changes are not taken. For example I changed a method name, or I changed a request type from POST to GET, and the ts file are same as first generation...
Did i miss something ? Thank you for help
Please or to participate in this conversation.