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]
Command "example" is not defined.
```
Any ideas?
I installed Laravel 5.5.20
and I run 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.