Property | Type | Description | |
---|---|---|---|
$crudName | string | Name of the Crud. | |
$crudNameCap | string | Crud Name in capital form. | |
$crudNameSingular | string | Crud Name in singular form. | |
$defaultColumnsToShow | integer | Number of columns to show from the table. Others are hidden. | |
$description | string | The console command description. | |
$formBodyHtml | string | Html of the form body. | |
$formBodyHtmlForShowView | string | Html of view to show. | |
$formFields | array | Form's fields. | |
$formFieldsHtml | string | Html of Form's fields. | |
$formHeadingHtml | string | Html of the form heading. | |
$modelName | string | Name of the Model. | |
$primaryKey | string | Primary key of the model. | |
$routeGroup | string | Name or prefix of the Route Group. | |
$signature | string | The name and signature of the console command. | |
$typeLookup | array | Form field types collection. | |
$viewDirectoryPath | string | View Directory Path. | |
$viewName | string | Name of the View Dir. |
Method | Description | |
---|---|---|
__construct ( ) : void | Create a new command instance. | |
handle ( ) : void | Execute the console command. | |
templateCreateVars ( string $newCreateFile ) : void | Update values between %% with real values in create view. | |
templateEditVars ( string $newEditFile ) : void | Update values between %% with real values in edit view. | |
templateFormVars ( string $newFormFile ) : void | Update values between %% with real values in form view. | |
templateIndexVars ( string $newIndexFile ) : void | Update values between %% with real values in index view. | |
templateShowVars ( string $newShowFile ) : void | Update values between %% with real values in show view. |
Method | Description | |
---|---|---|
createField ( array $item ) : string | Form field generator. | |
createFormField ( array $item ) : string | Create a specific field using the form helper. | |
createInputField ( array $item ) : string | Create a generic input field using the form helper. | |
createPasswordField ( array $item ) : string | Create a password field using the form helper. | |
createRadioField ( array $item ) : string | Create a yes/no radio button group using the form helper. | |
createSelectField ( array $item ) : string | Create a select field using the form helper. | |
wrapField ( string $item, string $field ) : void | Form field wrapper. |
public __construct ( ) : void | ||
return | void |
protected createField ( array $item ) : string | ||
$item | array | |
return | string |
protected createFormField ( array $item ) : string | ||
$item | array | |
return | string |
protected createInputField ( array $item ) : string | ||
$item | array | |
return | string |
protected createPasswordField ( array $item ) : string | ||
$item | array | |
return | string |
protected createRadioField ( array $item ) : string | ||
$item | array | |
return | string |
protected createSelectField ( array $item ) : string | ||
$item | array | |
return | string |
public templateCreateVars ( string $newCreateFile ) : void | ||
$newCreateFile | string | |
return | void |
public templateEditVars ( string $newEditFile ) : void | ||
$newEditFile | string | |
return | void |
public templateFormVars ( string $newFormFile ) : void | ||
$newFormFile | string | |
return | void |
public templateIndexVars ( string $newIndexFile ) : void | ||
$newIndexFile | string | |
return | void |
public templateShowVars ( string $newShowFile ) : void | ||
$newShowFile | string | |
return | void |
protected string $crudNameCap | ||
return | string |
protected string $crudNameSingular | ||
return | string |
protected int $defaultColumnsToShow | ||
return | integer |
protected string $description | ||
return | string |
protected string $formBodyHtml | ||
return | string |
protected string $formBodyHtmlForShowView | ||
return | string |
protected string $formFieldsHtml | ||
return | string |
protected string $formHeadingHtml | ||
return | string |
protected string $routeGroup | ||
return | string |
protected string $signature | ||
return | string |
protected array $typeLookup | ||
return | array |
protected string $viewDirectoryPath | ||
return | string |