美文网首页
Could not open input file: artis

Could not open input file: artis

作者: 端木安玉 | 来源:发表于2020-05-28 11:47 被阅读0次

问题:Could not open input file: artisan

分析:php artisan 命令不能使用

解决:

做到以下两步就能解决:

1.保证 laravel 根目录有 artisan 文件


image.png

2.保证命令在 laravel 根目录运行
eg:


D:\phpstudy_pro\WWW\laravel-admin\laravel>php artisan make:controller /UserController
Controller created successfully.

D:\phpstudy_pro\WWW\laravel-admin\laravel>

然后刷新controller目录


image.png

就能看见有user控制器了

相关文章

网友评论

      本文标题:Could not open input file: artis

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