Have you seen this? https://stackoverflow.com/a/60370251
Deploy requires deleting bootstrap/cache/routes.php
We recently upgraded from Laravel 5.5 to 6.2. Thing are fine in my local set up, but whenever we release code we hit a 500 page error after logging in. When I run php artisan config:clear it gives the following error:
Erroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute'
The only way I have found to fix it is by deleting the bootstrap/cache/routes.php file, and then I can run config:clear and the page loads correctly. I am trying to figure out how to fix this so we don't have to do it after every release. Any ideas? I can probably modify our build spec to include the command to delete it, but I figure there is another reason this is happening and it would be better to fix the root problem. I think it may also be affecting our routes since logging out hits an error page too. None of these issues occur with local envs, just ones we have to deploy to.
Thanks for any direction you can provide!
Please or to participate in this conversation.