mercredi 7 février 2018

Laravel 5 Artisan commands, is it possible to format CLI output similar to php artisan itself?

I am aware the the Command class has neat features like $this->line('hello') and $this->info('good job')

Attached is a screen shot of the output when I just type php artisan. Can I use artisan's functionality itself to create such an output (i.e. two different colors on one line, and a different color, say yellow, for a header) when I type something like this?:

php artisan mycommand:mysubcommand listmystuff



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire