1) 将laravel配置文件中的host:写成localhost 就可以:(如果不是本地数据库,请根据对应的ip地址填写)
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'homestead',
'username' => 'homestead',
'password' => 'secret',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => ''
宠物免费领养小程序,欢迎来踩