프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$files | Illuminate\Filesystem\Filesystem | The filesystem instance. | |
$postCreate | array | The registered post create hooks. |
메소드 | 설명 | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $filesystem ) | MappingCreator constructor. | |
afterCreate ( Closure $callback ) : void | Register a post migration create hook. | |
create ( $model, $path ) : string | Create a mapping file. | |
getFilesystem ( ) : Illuminate\Filesystem\Filesystem | Return the filesystem instance. | |
getStubPath ( ) : string | Get the path to the stubs. |
메소드 | 설명 | |
---|---|---|
firePostCreateHooks ( ) : void | Fire the registered post create hooks. | |
getClassName ( $model ) : string | Get the class name of a migration name. | |
getPath ( string $model, string $path ) : string | Get the full path name to the mapping. | |
getStub ( ) : string | Get the mapping stub template. | |
populateStub ( string $model, string $stub ) : string | Populate the place-holders in the mapping stub. |
public __construct ( Illuminate\Filesystem\Filesystem $filesystem ) | ||
$filesystem | Illuminate\Filesystem\Filesystem |
public afterCreate ( Closure $callback ) : void | ||
$callback | Closure | |
리턴 | void |
protected firePostCreateHooks ( ) : void | ||
리턴 | void |
protected getClassName ( $model ) : string | ||
$model | ||
리턴 | string |
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem | ||
리턴 | Illuminate\Filesystem\Filesystem |
protected Filesystem,Illuminate\Filesystem $files | ||
리턴 | Illuminate\Filesystem\Filesystem |