Lumen 快速开发工具包  v1.2.2
MigrationCreator类 参考
类 MigrationCreator 继承关系图:
MigrationCreator 的协作图:

Public 成员函数

 create ($name, $path, $table=null, $create=true)
 
 buildBluePrint ($fields=[], $keyName='id', $useTimestamps=true, $softDeletes=false)
 

Protected 成员函数

 populateStub ($name, $stub, $table)
 

Protected 属性

 $bluePrint = ''
 

成员函数说明

◆ buildBluePrint()

buildBluePrint (   $fields = [],
  $keyName = 'id',
  $useTimestamps = true,
  $softDeletes = false 
)

Build the table blueprint.

参数
array$fields
string$keyName
bool | true$useTimestamps
bool | false$softDeletes
异常

◆ create()

create (   $name,
  $path,
  $table = null,
  $create = true 
)

Create a new model.

参数
string$name
string$path
null$table
bool | true$create
返回
string

引用了 MigrationCreator\populateStub().

函数调用图:

◆ populateStub()

populateStub (   $name,
  $stub,
  $table 
)
protected

Populate stub.

参数
string$name
string$stub
string$table
返回
mixed

被这些函数引用 MigrationCreator\create().

这是这个函数的调用关系图:

该类的文档由以下文件生成: