Support the ongoing development of Laravel.io →
Views Mail
Last updated 1 year ago.
0

Was facing the same issue. Figured out the reason, though. Essentially, when you are using Mail::queue, the data passed to the view is serialized and stored. This is then retrieved by the queue worker.

This serialization destroys the object and converts it to an array.

As a workaround, I'm instead making sure that some of the extra properties are inserted into the array before it is passed to the queue.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.