Change REDIS_HOST=redis
to
REDIS_HOST=localhost
, it searches for a host with a name redis
and does not find it, since redis is installed on the same computer that you must use localhost
or 127.0.0.1
.
Once you do this, make sure you reload the .env configuration - php artisan config:clear
source
share