MySqlBuilder::hasTable()

bool hasTable(string $table) Determine if the given table exists. Parameters string $table Return Value bool

MySqlBuilder::hasColumns()

bool hasColumns(string $table, array $columns) Determine if the given table has given columns. Parameters string $table array $columns Return Value bool

MySqlBuilder::hasColumn()

bool hasColumn(string $table, string $column) Determine if the given table has a given column. Parameters string $table string $column Return Value bool

MySqlBuilder::getConnection()

Connection getConnection() Get the database connection instance. Return Value Connection

MySqlBuilder::getColumnListing()

array getColumnListing(string $table) Get the column listing for a given table. Parameters string $table Return Value array

MySqlBuilder::dropIfExists()

Blueprint dropIfExists(string $table) Drop a table from the schema if it exists. Parameters string $table Return Value Blueprint

MySqlBuilder::drop()

Blueprint drop(string $table) Drop a table from the schema. Parameters string $table Return Value Blueprint

MySqlBuilder::create()

Blueprint create(string $table, Closure $callback) Create a new table on the schema. Parameters string $table Closure $callback Return Value Blueprint

MySqlBuilder::blueprintResolver()

void blueprintResolver(Closure $resolver) Set the Schema Blueprint resolver callback. Parameters Closure $resolver Return Value void

MySqlBuilder

MySqlBuilder class MySqlBuilder extends Builder (View source) Methods void __construct(Connection $connection) Create a new database Schema manager. from Builder bool hasTable(string $table) Determine if the given table exists. bool hasColumn(string $table, string $column) Determine if the given table has a given column. from Builder bool hasColumns(string $table, array $columns) Determine if the given table has given columns. from Builder array getColumnListing(string $t