untymage's avatar

Lumen queue: Method Closure::handle() does not exist

I tried to work with queue in lumen but it has error:

dispatch(function (){
    echo 'test';
});
ReflectionException : Method Closure::handle() does not exist

0 likes
1 reply
bobbybouwmann's avatar
Level 88

Queueing closures was added after Laravel 5.8. I'm not sure if it ever made to Lumen 5.8 or higher.

It might be that Lumen doesn't have support for this, because it's a simplified version of Laravel. In that case, you need to use a Job class to make it work.

Please or to participate in this conversation.