Could not open input file: artis

2020-05-28  本文已影响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控制器了

上一篇 下一篇

猜你喜欢

热点阅读