Method |
Description |
|
addColumn ( string $field, string $type = "migration", $meta = "" ) : string |
Construct the syntax to add a column. |
|
buildField ( $field, $type, $variable, boolean $value = true ) : string |
Build form field with validation using Illuminate/Html Form facade or pure HTML |
|
constructSchema ( array $schema, string $direction = 'Add' ) : array |
Construct the schema fields. |
|
createSchemaForControllerMethod ( $schema, $meta ) : string |
Construct the controller fields |
|
createSchemaForDownMethod ( array $schema, array $meta ) : string |
Construct the syntax for a down field. |
|
createSchemaForUpMethod ( string $schema, array $meta ) : string |
Create the schema for the "up" method. |
|
createSchemaForViewMethod ( $schema, $meta, string $type = 'index-header' ) : string |
Construct the view fields |
|
dropColumn ( string $field ) : string |
Construct the syntax to drop a column. |
|
getChangeSchemaWrapper ( ) : string |
Get the wrapper template for an "add" action. |
|
getCreateSchemaWrapper ( ) : string |
Get the wrapper template for a "create" action. |
|
htmlField ( $column, $variable, $field, $type ) |
|
|
insert ( string $template ) |
Store the given template, to be inserted somewhere. |
|
into ( string $wrapper, string $placeholder = 'schema_up' ) : mixed |
Get the stored template, and insert into the given wrapper. |
|