PHP Class Schema, someline-starter

Afficher le fichier Open project: someline/someline-starter Class Usage Examples

Méthodes publiques

Méthode Description
blueprintResolver ( Closure $resolver ) : void Set the Schema Blueprint resolver callback.
create ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint Create a new table on the schema.
disableForeignKeyConstraints ( ) : boolean Disable foreign key constraints.
drop ( string $table ) : Illuminate\Database\Schema\Blueprint Drop a table from the schema.
dropIfExists ( string $table ) : Illuminate\Database\Schema\Blueprint Drop a table from the schema if it exists.
enableForeignKeyConstraints ( ) : boolean Enable foreign key constraints.
getColumnListing ( string $table ) : array Get the column listing for a given table.
getColumnType ( string $table, string $column ) : string Get the data type for the given column name.
getConnection ( ) : Connection Get the database connection instance.
hasColumn ( string $table, string $column ) : boolean Determine if the given table has a given column.
hasColumns ( string $table, array $columns ) : boolean Determine if the given table has given columns.
hasTable ( string $table ) : boolean Determine if the given table exists.
rename ( string $from, string $to ) : Illuminate\Database\Schema\Blueprint Rename a table on the schema.
setConnection ( Connection $connection ) Set the database connection instance.
table ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint Modify a table on the schema.

Method Details

blueprintResolver() public static méthode

Set the Schema Blueprint resolver callback.
public static blueprintResolver ( Closure $resolver ) : void
$resolver Closure
Résultat void

create() public static méthode

Create a new table on the schema.
public static create ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint
$table string
$callback Closure
Résultat Illuminate\Database\Schema\Blueprint

disableForeignKeyConstraints() public static méthode

Disable foreign key constraints.
public static disableForeignKeyConstraints ( ) : boolean
Résultat boolean

drop() public static méthode

Drop a table from the schema.
public static drop ( string $table ) : Illuminate\Database\Schema\Blueprint
$table string
Résultat Illuminate\Database\Schema\Blueprint

dropIfExists() public static méthode

Drop a table from the schema if it exists.
public static dropIfExists ( string $table ) : Illuminate\Database\Schema\Blueprint
$table string
Résultat Illuminate\Database\Schema\Blueprint

enableForeignKeyConstraints() public static méthode

Enable foreign key constraints.
public static enableForeignKeyConstraints ( ) : boolean
Résultat boolean

getColumnListing() public static méthode

Get the column listing for a given table.
public static getColumnListing ( string $table ) : array
$table string
Résultat array

getColumnType() public static méthode

Get the data type for the given column name.
public static getColumnType ( string $table, string $column ) : string
$table string
$column string
Résultat string

getConnection() public static méthode

Get the database connection instance.
public static getConnection ( ) : Connection
Résultat Illuminate\Database\Connection

hasColumn() public static méthode

Determine if the given table has a given column.
public static hasColumn ( string $table, string $column ) : boolean
$table string
$column string
Résultat boolean

hasColumns() public static méthode

Determine if the given table has given columns.
public static hasColumns ( string $table, array $columns ) : boolean
$table string
$columns array
Résultat boolean

hasTable() public static méthode

Determine if the given table exists.
public static hasTable ( string $table ) : boolean
$table string
Résultat boolean

rename() public static méthode

Rename a table on the schema.
public static rename ( string $from, string $to ) : Illuminate\Database\Schema\Blueprint
$from string
$to string
Résultat Illuminate\Database\Schema\Blueprint

setConnection() public static méthode

Set the database connection instance.
public static setConnection ( Connection $connection )
$connection Illuminate\Database\Connection

table() public static méthode

Modify a table on the schema.
public static table ( string $table, Closure $callback ) : Illuminate\Database\Schema\Blueprint
$table string
$callback Closure
Résultat Illuminate\Database\Schema\Blueprint