Creating new artisan command
Created 7 years ago by apolo13

Hey,

Basically I need to create a new artisan command, and when I run php artisan make:command SomethingUseful it does create it but I don't see Kernel.php file in there (why?) also even after adding it manually, somehow this new command is not visible... strange... What should I do?

Cheers

piterden  —  7 years ago Best Answer

Try to register it here /config/streams.php

piterden  —  7 years ago

You need to register command in the Service Provider of your addon. Do you have addon?

apolo13  —  7 years ago

No I don't have addon, can't I just use it without any addons?

piterden  —  7 years ago Best Answer

Try to register it here /config/streams.php

apolo13  —  7 years ago

Cool. It works. Thank you.

ryanthompson  —  7 years ago

@apolo13 you can also register them in routes/console.php like you normally would in Laravel.