Ever wondered how to create the same output as for example the artisan about command?

When you run artisan about, you get a nice overview like this:

Artisan About command output

It turns out that it's quite easy to achieve the same output.

The green titles are outputted like this:

$this->components->twoColumnDetail('  <fg=green;options=bold>Environment</>');

The key-value pairs are outputted like this:

$this->components->twoColumnDetail('Application Name', '🐥 YellowDuck.be');

The newlines can be done with=

$this->newline();

Please note that these methods are only available in classes extending Illuminate\Console\Command.