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

TableCommand

Extends

Properties

protected

$signature string

The name and signature of the console command.

Default: 'db:table {table? : The name of the table} {--database= : The database connection} {--json : Output the table information as JSON}'
protected

$description string

The console command description.

Default: 'Display information about the given database table'

Methods

public

handle ( ConnectionResolverInterface $connections ) : int

Execute the console command.

protected

columns ( Doctrine\...\Table $table ) : Illuminate\...\Collection

Get the information regarding the table's columns.

Parameters

  • $table Doctrine\...\Table
protected

getAttributesForColumn ( Doctrine\...\Column $column ) : Illuminate\...\Collection

Get the attributes for a table column.

Parameters

  • $column Doctrine\...\Column
protected

indexes ( Doctrine\...\Table $table ) : Illuminate\...\Collection

Get the information regarding the table's indexes.

Parameters

  • $table Doctrine\...\Table
protected

getAttributesForIndex ( Doctrine\...\Index $index ) : Illuminate\...\Collection

Get the attributes for a table index.

Parameters

  • $index Doctrine\...\Index
protected

foreignKeys ( Doctrine\...\Table $table ) : Illuminate\...\Collection

Get the information regarding the table's foreign keys.

Parameters

  • $table Doctrine\...\Table
protected

display ( array $data ) : void

Render the table information.

Parameters

  • $data array
protected

displayJson ( array $data ) : void

Render the table information as JSON.

Parameters

  • $data array
protected

displayForCli ( array $data ) : void

Render the table information formatted for the CLI.

Parameters

  • $data array