aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
796 stars 138 forks source link

Routes cache #93

Open eduardodallmann opened 5 years ago

eduardodallmann commented 5 years ago

I recently had a problem generating the js file, I had updated api.php but by running the php artisan laroute:generate command I did not modify js. After a while I thought about clearing the cache of the Laravel routes and then everything worked correctly.

I suggest making the call $this->call('route:cache'); at the beginning of the function handle().