class Illuminate / Database / Console / ShowCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ShowCommand

Extends

Properties

protected

$signature string

The name and signature of the console command.

Default: 'db:show {--database= : The database connection} {--json : Output the database information as JSON} {--counts : Show the table row count <bg=red;options=bold> Note: This can be slow on large databases </>}; {--views : Show the database views <bg=red;options=bold> Note: This can be slow on large databases </>}'
protected

$description string

The console command description.

Default: 'Display information about the given database'

Methods

public

handle ( ConnectionResolverInterface $connections ) : int

Execute the console command.

Parameters

protected

tables ( ConnectionInterface $connection , Doctrine\...\AbstractSchemaManager $schema ) : Illuminate\...\Collection

Get information regarding the tables within the database.

Parameters

protected

collectViews ( ConnectionInterface $connection , Doctrine\...\AbstractSchemaManager $schema ) : Illuminate\...\Collection

Get information regarding the views within the database.

Parameters

protected

display ( array $data ) : void

Render the database information.

Parameters

  • $data array
protected

displayJson ( array $data ) : void

Render the database information as JSON.

Parameters

  • $data array
protected

displayForCli ( array $data ) : void

Render the database information formatted for the CLI.

Parameters

  • $data array