1. Make sure,
If you are using Laravel 8
, in the database.php
file, replace the following line:
'client' => env('REDIS_CLIENT', 'phpredis')
to:
'client' => env('REDIS_CLIENT', 'predis')
then, add the predis
dependency with composer
:
composer require predis/predis
2. You can simply add
REDIS_CLIENT=predis
to your .env
file3. composer require predis/predis
4. now try
php artisan queue:clear Redis
0 Komentar