laravel - 执行php artisan make:model出错
本文介绍了laravel - 执行php artisan make:model出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
执行php artisan make:model Article后
Command "make:model" is not defined.
然后执行php artisan,发现make命令行下只有一行
make
make:migration Create a new migration file
怎么办?
解决方案
更新依赖时出问题了,原因各种各样的,有可能是你手动或者一些网络问题导致更新脚本的进程终止,也可能是镜像问题等。我们7、8个子项目用到laravel,这问题偶尔会有,基本上是一些不当的操作导致的,我也帮着解决了很多遍了
_(:з」∠)_
解决的时候,先composer clearcache清理包、仓库缓存,再用composer update,如果不起效,就删掉vendor目录重新你安装吧。
这篇关于laravel - 执行php artisan make:model出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文