Laravel 4 : Call to undefined method Redis::connection()

后端 未结 4 1027
情歌与酒
情歌与酒 2021-02-08 11:37

I\'m going crazy about this error. I\'ve got a vagrant VM with Debian 7, generated with Puphpet, installation was fine.

1. Redis is installed and working

4条回答
  •  粉色の甜心
    2021-02-08 12:11

    Install Redis extension on your PC.

    Download the CORRECT version the DDL from the following link: https://pecl.php.net/package/redis/4.1.0/windows

    Put the dll in the correct folder

    Wamp -> C:\wamp\bin\php\php-XXXX\ext
    Laragon -> C:\laragon\bin\php\php-XXX\ext
    

    Edit the php.ini file adding

    extension=php_redis.dll
    

    Restart server and check phpinfo();. Now Redis should be there!

提交回复
热议问题