i doubt it, as the lumen documentation says:
Note: Closure jobs are not supported by Lumen.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey, I really need to use closure jobs in my lumen app, But it seems not supported i mean this:
dispatch(function (){
//
});
Method Closure::handle() does not exist
The differences dispatch implementation between laravel and lumen :
laravel:
function dispatch($job)
{
if ($job instanceof Closure) {
$job = CallQueuedClosure::create($job);
}
return new PendingDispatch($job);
}
lumen:
function dispatch($job)
{
return new PendingDispatch($job);
}
So i tried the CallQueuedClosure::create($job); alone but it not working again:
PHP Fatal error: Trait 'Illuminate\Foundation\Bus\Dispatchable' not
So, Is there any possibility we could get it to work in lumen?
Please or to participate in this conversation.