为什么我的php artisan命令,运行生成控制器,生成model都没问题,但是用db:seed却出现问题,这是什么原因?windows电脑,显示There are no commands defined in the "db:" namespace.
为什么我的php artisan命令,运行生成控制器,生成model都没问题,但是用db:seed却出现问题,这是什么原因?windows电脑,显示There are no commands defined in the "db:" namespace.
你的報錯有點奇怪:
There are no commands defined in the "db:" namespace.
正常來講找不到 namespace
應該是這樣
There are no commands defined in the "db" namespace.
你卻多了一個冒號,感覺是打成了 db::seed
剛剛故意打錯的指令來試的結果。