i am having a problem setting up redis cache with laravel. i have a redis server runnig on my local machine:
my .env:
i have the localhost on port 6379 ready and listened:
someone plz tell me what's happenig here?
Change REDIS_HOST=redis
to
REDIS_HOST=localhost
, it is looking for a host named redis
and not finding it, since redis is installed on the same machine you should use localhost
or 127.0.0.1
.
Once you've done this, make sure you reload the .env config - php artisan config:clear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With