Метод |
Описание |
|
__construct ( $type, Closure $callback = null, null $index = null ) |
Blueprint constructor. |
|
addField ( string $type, string $name, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a new field to the blueprint. |
|
binary ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a binary field to the map. |
|
boolean ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a boolean field to the map. |
|
build ( Connection $connection, Grammar $grammar ) : array |
Execute the blueprint against the database. |
|
byte ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a byte numeric field to the map. |
|
completion ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a completion field to the map. |
|
create ( ) : Illuminate\Support\Fluent |
Indicate that the table needs to be created. |
|
date ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a date field to the map. |
|
double ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a double field to the map. |
|
float ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a float field to the map. |
|
getCommands ( ) : array |
Get the command fields. |
|
getFields ( ) : array |
Get the registered fields. |
|
integer ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add an integer field to the map. |
|
ip ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add an IPv4 field to the map. |
|
long ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a long numeric field to the map. |
|
nested ( $field, Closure $callback ) : Illuminate\Support\Fluent |
Add a nested map. |
|
object ( $field, Closure $callback ) : Illuminate\Support\Fluent |
Add a object map. |
|
point ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a geo point field to the map. |
|
shape ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a geo shape field to the map. |
|
short ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a short numeric field to the map. |
|
string ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a string field to the map. |
|
toDSL ( Grammar $grammar ) : array |
Get the raw DSL statements for the blueprint. |
|
tokenCount ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent |
Add a completion field to the map. |
|