【发布时间】:2014-10-24 08:52:48
【问题描述】:
我正在使用“Sentry by Cartalyst”创建 laravel 4 登录系统。在我的本地主机中一切都运行良好, 但是,当我上传到我的共享主机时。我得到了一些以下错误。
Symfony\Component\Debug\Exception\FatalErrorException
调用未定义的方法 Illuminate\Database\MySqlConnection::setReconnector()
我在 bootsrtap/compiled.php 中看到一个错误
$app = $this->app;
$connection->setCacheManager(function () use($app) {
return $app['cache'];
});
$connection->setPaginator(function () use($app) {
return $app['paginator'];
});
$connection->setReconnector(function ($connection) {
$this->reconnect($connection->getName());
});
请帮我解决这个错误。
【问题讨论】:
-
MySqlConnection 类中不存在 setReconnector() 方法。它是什么 Laravel 版本?
-
我使用的是 laravel 4.2。
-
我也在使用 Laravel 4.2 遇到同样的问题