Property | Type | Description | |
---|---|---|---|
$description | string | The console command description. | |
$signature | string | The name and signature of the console command. | |
$type | string | The type of class being generated. |
Method | Description | |
---|---|---|
buildClass ( string $name ) : string | Build the model class with the given name. | |
getDefaultNamespace ( string $rootNamespace ) : string | Get the default namespace for the class. | |
getStub ( ) : string | Get the stub file for the generator. | |
replaceCrudName ( string &$stub, string $crudName ) | Replace the crudName for the given stub. | |
replaceCrudNameSingular ( string &$stub, string $crudNameSingular ) | Replace the crudNameSingular for the given stub. | |
replaceFileSnippet ( &$stub, $fileSnippet ) | Replace the file snippet for the given stub | |
replaceModelName ( string &$stub, string $modelName ) | Replace the modelName for the given stub. | |
replaceModelNamespace ( string &$stub, $modelNamespace ) | Replace the modelName for the given stub. | |
replacePaginationNumber ( &$stub, $perPage ) | Replace the pagination placeholder for the given stub | |
replaceRouteGroup ( string &$stub, string $routeGroup ) | Replace the routeGroup for the given stub. | |
replaceValidationRules ( string &$stub, string $validationRules ) | Replace the validationRules for the given stub. | |
replaceViewName ( string &$stub, string $viewName ) | Replace the viewName fo the given stub. | |
replaceViewPath ( string &$stub, string $viewPath ) | Replace the viewPath for the given stub. |
protected buildClass ( string $name ) : string | ||
$name | string | |
return | string |
protected getDefaultNamespace ( string $rootNamespace ) : string | ||
$rootNamespace | string | |
return | string |
protected replaceCrudName ( string &$stub, string $crudName ) | ||
$stub | string | |
$crudName | string |
protected replaceCrudNameSingular ( string &$stub, string $crudNameSingular ) | ||
$stub | string | |
$crudNameSingular | string |
protected replaceFileSnippet ( &$stub, $fileSnippet ) | ||
$stub | ||
$fileSnippet |
protected replaceModelName ( string &$stub, string $modelName ) | ||
$stub | string | |
$modelName | string |
protected replaceModelNamespace ( string &$stub, $modelNamespace ) | ||
$stub | string |
protected replacePaginationNumber ( &$stub, $perPage ) | ||
$stub | ||
$perPage |
protected replaceRouteGroup ( string &$stub, string $routeGroup ) | ||
$stub | string | |
$routeGroup | string |
protected replaceValidationRules ( string &$stub, string $validationRules ) | ||
$stub | string | |
$validationRules | string |
protected replaceViewName ( string &$stub, string $viewName ) | ||
$stub | string | |
$viewName | string |
protected replaceViewPath ( string &$stub, string $viewPath ) | ||
$stub | string | |
$viewPath | string |
protected string $description | ||
return | string |
protected string $signature | ||
return | string |