如何毫无问题地将 Laravel 项目上传到共享主机
How To Upload Laravel Project To shared Hosting without problems
我与 laravel 5.2 一起工作,我构建了一个小应用程序,我只想将它上传到共享主机
我尝试使用 000webhost 和 byethost,但遇到了
这样的问题
Wrong COM_STMT_PREPARE response size. Received 7
Whoops, looks like something went wrong.(in two lines without explanation the problem)
此问题出在免费共享主机的数据库引擎中
例如 000webhost:
编辑config/database.php
:
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
//.......
'options' => [PDO::ATTR_EMULATE_PREPARES => true,]
],
我与 laravel 5.2 一起工作,我构建了一个小应用程序,我只想将它上传到共享主机 我尝试使用 000webhost 和 byethost,但遇到了
这样的问题Wrong COM_STMT_PREPARE response size. Received 7
Whoops, looks like something went wrong.(in two lines without explanation the problem)
此问题出在免费共享主机的数据库引擎中
例如 000webhost:
编辑config/database.php
:
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
//.......
'options' => [PDO::ATTR_EMULATE_PREPARES => true,]
],