Skip to content

Commit 2411d55

Browse files
committed
Replace duplicate driver name by the connection name
1 parent 504f893 commit 2411d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Console/ShowCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(ConnectionResolverInterface $connections)
4646
'platform' => [
4747
'config' => $this->getConfigFromDatabase($database),
4848
'name' => $connection->getDriverTitle(),
49-
'driver' => $connection->getDriverName(),
49+
'connection' => $connection->getName(),
5050
'version' => $connection->getServerVersion(),
5151
'open_connections' => $this->getConnectionCount($connection),
5252
],
@@ -160,7 +160,7 @@ protected function displayForCli(array $data)
160160
$this->newLine();
161161

162162
$this->components->twoColumnDetail('<fg=green;options=bold>'.$platform['name'].'</>', $platform['version']);
163-
$this->components->twoColumnDetail('Driver', Arr::get($platform['config'], 'driver'));
163+
$this->components->twoColumnDetail('Connection', Arr::get($platform['config'], 'connection'));
164164
$this->components->twoColumnDetail('Database', Arr::get($platform['config'], 'database'));
165165
$this->components->twoColumnDetail('Host', Arr::get($platform['config'], 'host'));
166166
$this->components->twoColumnDetail('Port', Arr::get($platform['config'], 'port'));

0 commit comments

Comments
 (0)