Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hamedgasemi200's avatar

php artisan queue:restart | Call to undefined method Illuminate\Support\Facades\Redis::connect()

I'm getting this error when I run queue:restart command. I've installed phpredis extension correctly and it works well in my app. But only in this command I get this error

Call to undefined method Illuminate\Support\Facades\Redis::connect()

.env file:

CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=redis

config/database.php:

...
    'redis' => [

        'client' => 'phpredis',
...

phpinfo():


Redis Support         |    enabled
----------------------|-----------------
Redis Version         |      5.0.1
Available serializers |    php, json
0 likes
4 replies
Snapey's avatar

have you composer require predis/predis ?

hamedgasemi200's avatar

I'm not using this package! I want to use the extension I mean phpredis.

predis works fine.

1 like
Snapey's avatar

And do the Laravel queue workers support that?

Please or to participate in this conversation.