There show how to custom a php artisan command
first create your custom command
This will auto generate a file in app/Console/Command/Tests/TestOutput.php
and setting a relative command for calling this file in terminal command
A new file will generated in app/Console/Command/Tests/TestOutput.php
and we add a message in handle.
Check command already builded
Show all laravel artisan commands:
and you will see custom cummand in list result.
Regist your command to Kernel.php
Finally! You can using the custom command