Hello, I made a new job in a recent Laravel 9 project. I'm doing some batch processing inside the job, and recursively calling the job from inside the job.
When I call OnboardRSDLocationJob:dispatchIf($update), it's failing, saying undefined function dispatchIf. The job has the Dispatchable trait, and I've verified that dispatchIf() exists in the Dispatchable definition.
I have a Laravel 8 project where this pattern works, so I'm confused as to why it's not working in the new project. Any insight would be much appreciated!