美文网首页
关于php artisan命令的使用

关于php artisan命令的使用

作者: 腿长袖子短 | 来源:发表于2017-09-28 09:53 被阅读30次

今天在使用php artisan命令创建controller时,进入到了项目的controller目录下,在此目录下使用了命令,提示Could not open input file:artisan
如下图:

1.jpg
其实php artisan不是一个全局命令,这个命令只能在项目的根目录下使用
当我切换目录到项目根目录下使用artisan命令时就好了 2.jpg

相关文章

网友评论

      本文标题:关于php artisan命令的使用

      本文链接:https://www.haomeiwen.com/subject/yylmextx.html