php - Laravel [ErrorException] unserialize(): Error at offset 78 of 82 bytes -
i trying queue command in laravel. using database queue driver. dispatch happens fine , can see entry on database. when run listen command terminal
php artisan queue:listen
getting following error:
[errorexception] unserialize(): error @ offset 78 of 82 bytes
after 3 long hours of pulling own hair, able solve this. posting fix, in case, faces same issue.
i injecting eloquent model command , laravel had trouble serializing/deserializing eloquent model after using serializesmodels
trait.
solution pass eloquent object id, instead of entire object, , fetch object in handler using id.
Comments
Post a Comment