R
R
Remsin2015-09-13 10:43:42
Redis
Remsin, 2015-09-13 10:43:42

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

2 answer(s)
A
Alexey Bespalov, 2015-09-13
@nulldef

Try writing at the beginning of the file

use Redis;
use DBRedis;

It seems to me that this is a jamb in the facades.

A
Alexey, 2015-09-14
@xelam

everything about Redis is here laravel.com/docs/4.2/redis
check config/db

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question