phpstudy集成环境安装lavarel

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

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

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

php artisan db:seed

出现如下错误:

[Symfony\Component\Console\Exception\CommandNotFoundException]
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

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



posted @ 2017-10-24 19:55  双木君  Views(495)  Comments(0Edit  收藏  举报