π #LaravelTip: Need a job to execute immediately within another job?
β Job::dispatch()->onConnection('sync')
β
Job::dispatchSync()
The first one just sets queue connection, while dispatchSync() guarantees immediate execution before next line.
Key for data consistency!