Running the command: php artisan route:cache
produces the following execption:
Erroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute'
Running: php artisan route:clear
fixes it
I'd like to know how I can fix this so I can cache my routes.
For me, this error was solved by deleting the following path files:
\bootstrap\cache
This worked for me
php artisan optimize:clear
php artisan config:clear
php artisan config:cache
composer dump-autoload
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With