Skip to content

Extending "php artisan about" output #45853

Closed Answered by roberto-butti
roberto-butti asked this question in Ideas
Discussion options

You must be logged in to vote

After some discovery, the AboutCommand is quite extendible so I can close this discussion.
If I need to extend the " about" information with additional info, I noticed that I could add info and Sections.
To add info to an existent section like Environment:

AboutCommand::add('Environment', "Additional data", "Another value");

Creating a new section:

AboutCommand::add('LaraSock',
            fn () =>
            [
                'Version' => \Composer\InstalledVersions::getPrettyVersion("hi-folks/lara-sock"),
                'WebSocket engine' => $engine,
                'Number clients connected' => "<fg=red;options=bold>{$connectedClients}</>",
                "Peek num clients" => "<fg…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@roberto-butti
Comment options

Comment options

You must be logged in to vote
3 replies
@roberto-butti
Comment options

@marco-introini
Comment options

@roberto-butti
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by roberto-butti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants