|
Lumen 快速开发工具包
v1.2.2
|


Public 成员函数 | |
| create ($name, $path, $table=null, $create=true) | |
| buildBluePrint ($fields=[], $keyName='id', $useTimestamps=true, $softDeletes=false) | |
Protected 成员函数 | |
| populateStub ($name, $stub, $table) | |
Protected 属性 | |
| $bluePrint = '' | |
| buildBluePrint | ( | $fields = [], |
|
$keyName = 'id', |
|||
$useTimestamps = true, |
|||
$softDeletes = false |
|||
| ) |
Build the table blueprint.
| array | $fields | |
| string | $keyName | |
| bool | true | $useTimestamps | |
| bool | false | $softDeletes |
| create | ( | $name, | |
| $path, | |||
$table = null, |
|||
$create = true |
|||
| ) |
Create a new model.
| string | $name | |
| string | $path | |
| null | $table | |
| bool | true | $create |
引用了 MigrationCreator\populateStub().

|
protected |
Populate stub.
| string | $name | |
| string | $stub | |
| string | $table |
被这些函数引用 MigrationCreator\create().
