Property | Type | Description | |
---|---|---|---|
$builder | |||
$callable | callable | ||
$inputs | array | Input data. | |
$model | Eloquent model of the form. | ||
$relations | array | Data for save to model's relations from input. | |
$saved | Closure | Saved callback. | |
$saving | Closure | Saving callback. | |
$updates | array | Data for save to current model from input. | |
$validator | Illuminate\Validation\Validator |
Method | Description | |
---|---|---|
__call ( string $method, array $arguments ) : |
Generate a Field object and add to form builder if Field exists. | |
__construct ( $model, Closure $callback ) | ||
__get ( string $name ) : array | mixed | Getter. | |
__set ( string $name, $value ) | Setter. | |
__toString ( ) : string | Render the contents of the form when casting to string. | |
builder ( ) : |
||
destroy ( $id ) : mixed | Destroy data entity and remove files. | |
edit ( $id ) | Generate a edit form. | |
findFieldClass ( $method ) | ||
getRelations ( ) : array | Get all relations of model from callable. | |
input ( string $key, null $value = null ) : array | mixed | Get or set input data. | |
model ( ) : |
||
pushField ( |
||
render ( ) : string | Render the form contents. | |
resource ( ) : string | Get current resource route url. | |
saved ( Closure $callback ) : void | Set saved callback. | |
saving ( Closure $callback ) : void | Set saving callback. | |
store ( ) | Store a new record. | |
update ( $id ) | ||
view ( $id ) |
Method | Description | |
---|---|---|
complete ( Closure $callback = null ) : void | Callback after saving a Model. | |
deleteFilesAndImages ( $id ) | Remove files or images in record. | |
getDataByColumn ( array $data, string | array $columns ) : array | mixed | ||
getFieldByColumn ( $column ) : mixed | Find field object by column. | |
prepare ( array $data = [], Closure $callback = null ) | Prepare input data for insert or update. | |
prepareInsert ( $inserts ) : array | Prepare input data for insert. | |
prepareUpdate ( $updates ) : array | Prepare input data for update. | |
saveRelation ( array $relations ) : void | Save relations data. | |
setFieldOriginalValue ( ) : void | Set original data for each field. | |
setFieldValue ( $id ) : void | Set all fields value in form. | |
setUp ( ) | Set up the form. | |
updateRelation ( array $relations ) : void | Update relation data. | |
validate ( $input ) : boolean | Validate input data. |
public __toString ( ) : string | ||
return | string |
protected deleteFilesAndImages ( $id ) | ||
$id |
protected getFieldByColumn ( $column ) : mixed | ||
$column | ||
return | mixed |
public getRelations ( ) : array | ||
return | array |
protected prepareInsert ( $inserts ) : array | ||
$inserts | ||
return | array |
protected prepareUpdate ( $updates ) : array | ||
$updates | ||
return | array |
protected saveRelation ( array $relations ) : void | ||
$relations | array | |
return | void |
protected setFieldOriginalValue ( ) : void | ||
return | void |
protected setFieldValue ( $id ) : void | ||
$id | ||
return | void |
protected updateRelation ( array $relations ) : void | ||
$relations | array | |
return | void |
protected Builder,Encore\Admin\Form $builder | ||
return |
protected array $relations | ||
return | array |
protected array $updates | ||
return | array |