无法打开输入文件:make:auth in laravel

Could not open input file: make:auth in laravel

这个问题可能会重复出现,但我尝试了所有解决方案,其中 none 解决了我的问题。

我在 /home/user/Documents 使用 composer create-project --prefer-dist laravel/laravel website "5.3.*" 通过 composer 安装了 laravel 5.3 项目,当我尝试 运行 任何 make 命令时 php make:authphp make:middleware,我在终端 Could not open input file: make:authCould not open input file: make:middleware 中收到此消息。我已经检查了所有写入和删除的权限,我也尝试以 root 身份 运行,并且在搜索时有 运行 chmod +x artisan 的解决方案,但对我不起作用。我不知道是什么问题。 当我从 linux mint 18 移动到 fedora workstation 25 时,我遇到了这个问题。谢谢你的帮助。

首先检查你的项目路径

您可以使用 php artisan

检查所有要执行的命令

您没有正确使用命令 - Laravel 的 CLI 工具名为 artisan,它位于项目的根目录中。

从项目的根目录开始,正确的命令是:

php artisan make:auth

php artisan make:middleware