diff --git a/src/Illuminate/Database/Console/ShowCommand.php b/src/Illuminate/Database/Console/ShowCommand.php index d711a01bc685..1d4aff3398b5 100644 --- a/src/Illuminate/Database/Console/ShowCommand.php +++ b/src/Illuminate/Database/Console/ShowCommand.php @@ -78,7 +78,7 @@ protected function tables(ConnectionInterface $connection, Builder $schema) 'table' => $table['name'], 'schema' => $table['schema'], 'size' => $table['size'], - 'rows' => $this->option('counts') ? $connection->table($table->getName())->count() : null, + 'rows' => $this->option('counts') ? $connection->table($table['name'])->count() : null, 'engine' => $table['engine'], 'collation' => $table['collation'], 'comment' => $table['comment'],