Property | Type | Description | |
---|---|---|---|
$files | Illuminate\Filesystem\Filesystem | The filesystem instance. | |
$postCreate | array | The registered post create hooks. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return | void |
protected firePostCreateHooks ( ) : void | ||
return | void |
protected getClassName ( $model ) : string | ||
$model | ||
return | string |
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem | ||
return | Illuminate\Filesystem\Filesystem |
public getStubPath ( ) : string | ||
return | string |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |
protected array $postCreate | ||
return | array |