ch123213

466 经验值

用php artisan tinke可以查询所有数据

我也是同样的问题,我用的是homestead虚拟机,运行homestead.app/articles 会报以下错误
PDOException in Connector.php line 55:
SQLSTATE[HY000] [2002] Connection refused

PDOException in Connector.php line 55:
SQLSTATE[HY000] [2002] Connection refused

在ArticlesController index方法中输入$articles=Article::all();会报错,我用的是homestead虚拟机,