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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -