We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf0ee5 commit 1b348b4Copy full SHA for 1b348b4
src/Illuminate/Database/Console/DbCommand.php
@@ -13,7 +13,7 @@ class DbCommand extends Command
13
*
14
* @var string
15
*/
16
- protected $signature = 'db {--database= : The database connection to use}';
+ protected $signature = 'db {connection? : The database connection to use}';
17
18
/**
19
* The console command description.
@@ -49,7 +49,7 @@ public function handle()
49
public function getConnection()
50
{
51
$connection = $this->laravel['config']['database.connections.'.
52
- (($db = $this->option('database')) ?? $this->laravel['config']['database.default'])
+ (($db = $this->argument('connection')) ?? $this->laravel['config']['database.default'])
53
];
54
55
if (empty($connection)) {
0 commit comments