Answer the question
In order to leave comments, you need to log in
Why won't redis start in Laravel 4?
If you write
$redis = DBRedis::connection();
then artisan queue:listen gives Fatal error :
Class 'Redis' not
found
connection();
then it gives a Fatal error: Using $this when not in object context in ...\src\Illuminate\Redis\Database.php on line 71
Please tell a newbie what to do, how to finally start redis?
Answer the question
In order to leave comments, you need to log in
Try writing at the beginning of the file
use Redis;
use DBRedis;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question