The Queue class contains a method named createPayloadUsing which allows you to register a callback that is executed when creating job payloads.
PHP
Your System Isn’t Slow – Your Bottleneck is not Optimized
A bottleneck isn’t inherently bad, we all have them. What matters is making sure your biggest bottleneck is always working at it’s most optimal conditions. That’s where your optimizations should be focused. Read more