以下次錯誤訊息:
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Call to undefined method Redis::connection()
本來的連線方式是:
$redis = Redis::connection();
後來改用:
$app = app();
$redis = $app['redis']->connection();
參考:
stackoverflow Laravel 4 : Call to undefined method Redis::connection()
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Call to undefined method Redis::connection()
本來的連線方式是:
$redis = Redis::connection();
後來改用:
$app = app();
$redis = $app['redis']->connection();
參考:
stackoverflow Laravel 4 : Call to undefined method Redis::connection()
沒有留言:
張貼留言
若你看的文章,時間太久遠的問題就別問了,因為我應該也忘了... XD