Class ModelCompiler
-
Scaffolder\Compilers\AbstractCompiler
-
Scaffolder\Compilers\AbstractCoreCompiler
-
Scaffolder\Compilers\Core\ModelCompiler
Methods summary
public
string
|
#
compile( $stub, $modelName, $modelData, stdClass $scaffolderConfig, $hash, array $extensions, null $extra = null )
Compiles a model.
Parameters
- $stub
- $modelName
- $modelData
- $scaffolderConfig
- $hash
- $extensions
- $extra
Returns
string
|
protected
string
|
#
store( $modelName, stdClass $scaffolderConfig, $compiled, Scaffolder\Support\FileToCompile $fileToCompile )
Store the compiled stub.
Parameters
- $modelName
- $scaffolderConfig
- $compiled
- $fileToCompile
Returns
string
|
protected
|
#
addFillable( $modelData )
Add fillable.
Parameters
Returns
$this
|
protected
|
#
replaceTableName( stdClass $scaffolderConfig, $modelName )
Replace the table name.
Parameters
- $scaffolderConfig
- $modelName
Returns
$this
|
protected
|
#
setPrimaryKey( $modelData )
Set the primary key.
Parameters
Returns
$this
|