Oct 19, 2016
2
Level 13
laravel5.3 register console command
I've cerated a new Command using artisan:
php artisan make:command CheckUsers
Now a file located at "Console/Commands/CheckUsers.php" was created.
How to insert this file now to the list of commands of artisan (when I call php artisan -help, it's not listed). I figured out I would need to add this command into the "routes/console.php" file, but I don't understand how to do this.
Here's the current code of my console.php
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
//how to insert here now my command (check:users)
Artisan::command();
Please or to participate in this conversation.