我有一个使用Laravel 4开发的应用程序,在本地主机上可以正常运行,但是当我将其上传到主机上时,收到了错误提示。
app>config>database.php文件如下:
'mysql' => array(
'driver' => 'mysql',
'host' => '127.0.0.1',
'database' => 'forum',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
bootstrap>start.php 的内容为:
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));