phpstudy集成环境安装lavarel

可参考这个 http://blog.csdn.net/dmt742055597/article/details/73038447;

1、使用测试数据填充文章表

问题描述:根据官网的操作说明创建数据填充后,执行

php artisan db:seed

出现如下错误:

[SymfonyComponentConsoleExceptionCommandNotFoundException]
There are no commands defined in the "db:" namespace.
Did you mean this?
db

解决方法:

php artisan clear-compiled

php artisan optimize

php artisan config:clear

然后从新执行填充命令就可以了。



原文地址:https://www.cnblogs.com/-lin/p/7725431.html