Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Update config:show command #51902

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/Console/ConfigShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class ConfigShowCommand extends Command
*
* @var string
*/
protected $signature = 'config:show {config : The configuration file to show}';
protected $signature = 'config:show {config : The configuration file or key to show}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Display all of the values for a given configuration file';
protected $description = 'Display all of the values for a given configuration file or key';

/**
* Execute the console command.
Expand All @@ -33,7 +33,7 @@ public function handle()
$config = $this->argument('config');

if (! config()->has($config)) {
$this->components->error("Configuration file `{$config}` does not exist.");
$this->components->error("Configuration file or key <comment>{$config}</comment> does not exist.");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highlight configuration file or key using "comment" tag.

Screenshot_4


return Command::FAILURE;
}
Expand Down