Running the command: php artisan route:cache
produces the following execption:
Erroneous data format for unserializing 'SymfonyComponentRoutingCompiledRoute'
Running: php artisan route:clear
fixes it
I’d like to know how I can fix this so I can cache my routes.
Advertisement
Answer
After a bunch of figuring things out. I found that Apache2 was still using an older version of PHP even though the CLI version was up to date.
After uninstalling all older versions of php and reconfiguring Apache2 to use the latest version fixed this issue.