laravel-api-versioning icon indicating copy to clipboard operation
laravel-api-versioning copied to clipboard

Routes not working after `route:cache`

Open iainheng opened this issue 4 years ago • 3 comments

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?

iainheng avatar Jan 28 '21 10:01 iainheng

Thanks @iainheng for reporting the Issue I didn't check it with the route:cache commend. witch Laravel version are you using?

mbpcoder avatar Feb 09 '21 03:02 mbpcoder

I tested with Laravel 8 and I got the same results after running route:cache command.

metalc0der avatar Dec 21 '22 01:12 metalc0der

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

mbpcoder avatar Dec 23 '22 09:12 mbpcoder