A queued job that manually builds an expensive service is painful to test. Let's see how to leverage Laravel's container to make this a lot nicer. masteringlaravel.io/daily/2026-0...
The right place to inject a service into a queued job | Mastering Laravel
And why it's the better choice
masteringlaravel.io