Class 'Predis\Client' not found in Laravel
12,518
After setting your .env
file for redis try running php artisan config:cache
.
Author by
Ali insan Soyaslan
Computer Science Student from Turkey, Interested in Php-Laravel and Java-Spring Also a biker, I ride around while not coding. https://github.com/alinso/
Updated on June 04, 2022Comments
-
Ali insan Soyaslan almost 2 years
I installed redis by
composer require predis/predis
then I changed my config/queue.php like this:
'default' => env('QUEUE_DRIVER', 'redis'),
however when I try to use redis:
use Illuminate\Support\Facades\Redis; Redis::connection();
I get this error :
FatalErrorException in Database.php line 63: Class 'Predis\Client' not found
Edit:
Actually I installed Redis on local host and I uploaded only 'vendor' folder to server. Can it be because of, while installation is there any other file created except from in "vendor" folder?
What can be the problem? I use laravel 5.0 thanks,,