I recently had the same error and found out that the route that was being called actually was a closure (and not a method in a controller class). Seems like Vapor does not like those.
Nov 16, 2020
3
Level 3
Opis\Closure\SecurityException on Laravel Vapor
Hi, I'm running for the first time a project in Laravel Vapor. After the deploy the application return an error 500. When I go to the logs section I see this error appear:
Opis\Closure\SecurityException
Your serialized closure might have been modified and it's unsafe to be unserialized. Make sure you use the same security provider, with the same settings, both for serialization and unserialization.
/var/task/vendor/opis/closure/src/SerializableClosure.php:213
Any hint?
Please or to participate in this conversation.