메소드 |
설명 |
|
buildClass ( string $name ) : string |
Build the model class with the given name. |
|
createRelationshipFunction ( string &$stub, string $relationshipName, string $relationshipType, $argsString ) |
Create the code for a model relationship |
|
getDefaultNamespace ( string $rootNamespace ) : string |
Get the default namespace for the class. |
|
getStub ( ) : string |
Get the stub file for the generator. |
|
replaceFillable ( string &$stub, string $fillable ) |
Replace the fillable for the given stub. |
|
replacePrimaryKey ( string &$stub, string $primaryKey ) |
Replace the primary key for the given stub. |
|
replaceRelationshipPlaceholder ( &$stub ) |
remove the relationships placeholder when it's no longer needed |
|
replaceTable ( string &$stub, string $table ) |
Replace the table for the given stub. |
|