class
Illuminate
/
Database
/
Console
/
TableCommand
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
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