在执行 php artisan key:generate ,报 Could not open input file: artisan 错误 Could not open input file: artisan 必须保证命令是在项目根目录,如下图所示: