Introduction
⚡️ Supercharged job chains for Laravel
$haystack = Haystack::build()
->addJob(new RecordPodcast)
->addJob(new ProcessPodcast)
->addJob(new PublishPodcast)
->then(function () {
// Haystack completed
})
->catch(function () {
// Haystack failed
})
->finally(function () {
// Always run either on success or fail.
})
->withMiddleware([
// Middleware for every job
])
->withDelay(60)
->withModel($user)
->dispatch();But doesn't Laravel already have job chains?
Laravel Haystack Features
Use Cases
Last updated