laravel-api-versioning
laravel-api-versioning copied to clipboard
Routes not working after `route:cache`
I am getting The GET method is not supported for this route. Supported methods: HEAD.
exception message from Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException
if I am cached my routes with php artisan route:cache
.
However the routes are working as expected if I cleared the cache by php artisan route:clear
.
Is this the limitation of this package?
Thanks @iainheng for reporting the Issue I didn't check it with the route:cache commend. witch Laravel version are you using?
I tested with Laravel 8 and I got the same results after running route:cache command.
Yes, I checked myself and there is a problem. I have to come up with an Idea to cache the routes Do you have any suggestions? @metalc0der @iainheng