I'm getting error “Class 'Predis\Client' not found” in Laravel 5.2

前端 未结 7 1611
自闭症患者
自闭症患者 2020-12-03 04:39

I want to using Redis in laravel 5.2 however, I\'m getting error such a Class \'Predis\\Client\' not found, How I can solve it.

7条回答
  •  一整个雨季
    2020-12-03 04:57

    You need to add predis/predis into composer.json for your project. Reference: https://laravel.com/docs/5.2/redis#introduction

提交回复
热议问题