我正在使用“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());
});
请帮我解决这个错误。
最佳答案
尝试确保 composer 已在您的共享主机上安装并更新供应商特定文件:运行“composer install”和“composer update”
关于php - Symfony\Component\Debug\Exception\FatalErrorException 调用未定义的方法 Illuminate\Database\MySqlConnection::setReconnector(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25583600/