[英]Laravel 5.5.20: Command not found
I am trying to create command: 我正在尝试创建命令:
php artisan make:command ExampleCommand --command=example
When I'm trying to launch it - I am getting: 当我尝试启动它时,我得到:
``` ```
[Symfony\\Component\\Console\\Exception\\CommandNotFoundException] [Symfony \\ Component \\ Console \\ Exception \\ CommandNotFoundException]
Command "example" is not defined. 未定义命令“ example”。
``` ```
Any ideas? 有任何想法吗?
I installed Laravel 5.5.20
and I run php artisan make:command ExampleCommand --command=example
code. 我安装了
Laravel 5.5.20
然后运行php artisan make:command ExampleCommand --command=example
code。 There was no problem. 没问题 I think some of the packages are not installed correctly.
我认为某些软件包安装不正确。
I suggest removing the composer.lock
file and remove the vendor
directory and run the composer install
again. 我建议删除
composer.lock
文件并删除vendor
目录,然后再次运行composer install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.