trait HasForm (View source)

Properties

protected array $formData
protected array|Closure $formSchema
protected bool|Closure $isFormDisabled
protected Closure|null $mutateFormDataUsing

Methods

disableForm(bool|Closure $condition = true)

No description

form(array|Closure $schema)

No description

array
getFormSchema()

No description

bool
hasForm()

No description

bool
hasFormSchema()

No description

mutateFormDataUsing(Closure|null $callback)

No description

formData(array $data, bool $shouldMutate = true)

No description

resetFormData()

No description

array
getFormData()

No description

bool
isFormDisabled()

No description

Details

HasForm disableForm(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasForm

HasForm form(array|Closure $schema)

No description

Parameters

array|Closure $schema

Return Value

HasForm

array getFormSchema()

No description

Return Value

array

bool hasForm()

No description

Return Value

bool

bool hasFormSchema()

No description

Return Value

bool

HasForm mutateFormDataUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasForm

HasForm formData(array $data, bool $shouldMutate = true)

No description

Parameters

array $data
bool $shouldMutate

Return Value

HasForm

HasForm resetFormData()

No description

Return Value

HasForm

array getFormData()

No description

Return Value

array

bool isFormDisabled()

No description

Return Value

bool