Skip to content

Commit

Permalink
[11.x] Update config:show command (#51902)
Browse files Browse the repository at this point in the history
* Update config:show command

* Update ConfigShowCommand.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
seriquynh and taylorotwell authored Jun 25, 2024
1 parent df7f734 commit 72c872e
Showing 1 changed file with 3 additions and 3 deletions.
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.");

return Command::FAILURE;
}
Expand Down

0 comments on commit 72c872e

Please sign in to comment.