Advertisement

Responsive Advertisement

Class Redis Not Found Laravel 8




 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 file

3. composer require predis/predis 

4. now try 
php artisan queue:clear Redis

Posting Komentar

0 Komentar