프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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. |
protected createField ( array $item ) : string | ||
$item | array | |
리턴 | string |
protected createFormField ( array $item ) : string | ||
$item | array | |
리턴 | string |
protected createInputField ( array $item ) : string | ||
$item | array | |
리턴 | string |
protected createPasswordField ( array $item ) : string | ||
$item | array | |
리턴 | string |
protected createRadioField ( array $item ) : string | ||
$item | array | |
리턴 | string |
protected createSelectField ( array $item ) : string | ||
$item | array | |
리턴 | string |
public templateCreateVars ( string $newCreateFile ) : void | ||
$newCreateFile | string | |
리턴 | void |
public templateEditVars ( string $newEditFile ) : void | ||
$newEditFile | string | |
리턴 | void |
public templateFormVars ( string $newFormFile ) : void | ||
$newFormFile | string | |
리턴 | void |
public templateIndexVars ( string $newIndexFile ) : void | ||
$newIndexFile | string | |
리턴 | void |
public templateShowVars ( string $newShowFile ) : void | ||
$newShowFile | string | |
리턴 | void |
protected string $crudNameSingular | ||
리턴 | string |
protected int $defaultColumnsToShow | ||
리턴 | integer |
protected string $formBodyHtmlForShowView | ||
리턴 | string |
protected string $signature | ||
리턴 | string |