class Form extends ComponentContainer (View source)

Traits

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected string $view from  ComponentContainer
protected string|Closure|null $defaultView from  ViewComponent
protected array<string,mixed> $viewData from  ViewComponent
protected string $viewIdentifier from  ComponentContainer
protected HasForms $livewire from  BelongsToLivewire
Model|string|null $model from  BelongsToModel
protected Component|null $parentComponent from  BelongsToParentComponent
protected bool|Closure $isDisabled from  CanBeDisabled
protected array|null $columns from  HasColumns
protected Component[] $components from  HasComponents
protected string|Closure|null $fieldWrapperView from  HasFieldWrapper
protected bool|Closure|null $hasInlineLabels from  HasInlineLabels
protected string|null $operation from  HasOperation
protected string|null $statePath from  HasState
protected string $cachedAbsoluteStatePath from  HasState
protected string[] $stateBindingModifiers from  HasStateBindingModifiers
protected int|string|null $liveDebounce from  HasStateBindingModifiers
protected bool|Closure|null $isLive from  HasStateBindingModifiers
protected bool $isLiveOnBlur from  HasStateBindingModifiers
protected array $extraAttributes from  HasExtraAttributes

Methods

static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
static void
macro(string $name, callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static void
flushMacros()

No description

static mixed
__callStatic(string $method, array $parameters)

No description

mixed
__call(string $method, array $parameters)

No description

static callable|null
getMacro(string $method)

No description

view(string|null $view, array $viewData = [])

No description

defaultView(string|Closure|null $view)

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string|null
getDefaultView()

No description

string
toHtml()

No description

View
render()

No description

livewire(HasForms $livewire)

No description

getLivewire()

No description

model(Model|string|null $model = null)

No description

void
saveRelationships()

No description

void
loadStateFromRelationships(bool $andHydrate = false)

No description

string|null
getModel()

No description

Model|null
getRecord()

No description

Model|null
getModelInstance()

No description

Component|null
getParentComponent()

No description

bool
isRoot()

No description

disabled(bool|Closure $condition = true)

No description

bool
isDisabled()

No description

bool
isEnabled()

No description

bool
isHidden()

No description

bool
isVisible()

No description

array
getValidationAttributes()

No description

array
getValidationMessages()

No description

array
getValidationRules()

No description

array
validate()

No description

cloneComponents()

No description

getClone()

No description

columns(array|int|string|null $columns = 2)

No description

array|int|string|null
getColumns(string|null $breakpoint = null)

No description

array
getColumnsConfig()

No description

components(array|Closure $components)

No description

schema(array|Closure $components)

No description

Component|null
getComponent(string|Closure $findComponentUsing, bool $withHidden = false)

No description

array
getFlatComponents(bool $withHidden = false)

No description

array
getFlatComponentsByKey(bool $withHidden = false)

No description

array
getFlatFields(bool $withHidden = false, bool $withAbsolutePathKeys = false)

No description

array
getComponents(bool $withHidden = false)

No description

fieldWrapperView(string|Closure|null $view)

No description

string|null
getCustomFieldWrapperView()

No description

inlineLabel(bool|Closure|null $condition = true)

No description

bool|null
hasInlineLabel()

No description

operation(string|null $operation)

No description

context(string|null $context) deprecated

No description

string
getOperation()

No description

void
callAfterStateHydrated()

No description

from  HasState
bool
callAfterStateUpdated(string $path)

No description

from  HasState
void
callBeforeStateDehydrated()

No description

from  HasState
array
dehydrateState(array $state = [], bool $isDehydrated = true)

No description

from  HasState
array
mutateDehydratedState(array $state = [])

No description

from  HasState
array
mutateStateForValidation(array $state = [])

No description

from  HasState
fill(array|null $state = null, bool $andCallHydrationHooks = true, bool $andFillStateWithNull = true)

No description

from  HasState
void
hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)

No description

from  HasState
void
fillStateWithNull()

No description

from  HasState
statePath(string|null $path)

No description

from  HasState
array
getState(bool $shouldCallHooksBefore = true, Closure|null $afterValidate = null)

No description

from  HasState
Arrayable
getRawState()

No description

from  HasState
array
getStateOnly(array $keys, bool $shouldCallHooksBefore = true)

No description

from  HasState
array
getStateExcept(array $keys, bool $shouldCallHooksBefore = true)

No description

from  HasState
string
getStatePath(bool $isAbsolute = true)

No description

from  HasState
void
flushCachedAbsoluteStatePath()

No description

from  HasState
live(bool $onBlur = false, int|string|null $debounce = null, bool|Closure|null $condition = true)

No description

debounce(int|string|null $delay = 500)

No description

stateBindingModifiers(array|null $modifiers)

No description

string
applyStateBindingModifiers(string $expression, bool $isOptimisticallyLive = true)

No description

array
getStateBindingModifiers(bool $withBlur = true, bool $withDebounce = true, bool $isOptimisticallyLive = true)

No description

bool
isLive()

No description

bool
isLiveOnBlur()

No description

bool
isLazy()

No description

bool
isLiveDebounced()

No description

int|string|null
getLiveDebounce()

No description

int|null
getNormalizedLiveDebounce()

No description

dispatchEvent(string $event, mixed ...$parameters)

No description

string|null
getComponentFileAttachmentUrl(string $statePath)

No description

bool
deleteUploadedFile(string $statePath, string $fileKey)

No description

array|null
getUploadedFiles(string $statePath)

No description

bool
removeUploadedFile(string $statePath, string $fileKey)

No description

bool
reorderUploadedFiles(string $statePath, array $fileKeys)

No description

string|null
getSelectOptionLabel(string $statePath)

No description

array
getSelectOptionLabels(string $statePath)

No description

array
getSelectOptions(string $statePath)

No description

array
getSelectSearchResults(string $statePath, string $search)

No description

extraAttributes(array|Closure $attributes, bool $merge = false)

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

__construct(HasForms $livewire)

No description

make(HasForms $livewire)

No description

Details

static mixed configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $modifyUsing
Closure|null $during
bool $isImportant

Return Value

mixed

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

ViewComponent view(string|null $view, array $viewData = [])

No description

Parameters

string|null $view
array $viewData

Return Value

ViewComponent

ViewComponent defaultView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

ViewComponent

protected array extractPublicMethods()

No description

Return Value

array

ViewComponent viewData(array $data)

No description

Parameters

array $data

Return Value

ViewComponent

string getView()

No description

Return Value

string

string|null getDefaultView()

No description

Return Value

string|null

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

BelongsToLivewire livewire(HasForms $livewire)

No description

Parameters

HasForms $livewire

Return Value

BelongsToLivewire

HasForms getLivewire()

No description

Return Value

HasForms

BelongsToModel model(Model|string|null $model = null)

No description

Parameters

Model|string|null $model

Return Value

BelongsToModel

void saveRelationships()

No description

Return Value

void

void loadStateFromRelationships(bool $andHydrate = false)

No description

Parameters

bool $andHydrate

Return Value

void

string|null getModel()

No description

Return Value

string|null

Model|null getRecord()

No description

Return Value

Model|null

Model|null getModelInstance()

No description

Return Value

Model|null

BelongsToParentComponent parentComponent(Component $component)

No description

Parameters

Component $component

Return Value

BelongsToParentComponent

Component|null getParentComponent()

No description

Return Value

Component|null

bool isRoot()

No description

Return Value

bool

CanBeDisabled disabled(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeDisabled

bool isDisabled()

No description

Return Value

bool

bool isEnabled()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

array getValidationAttributes()

No description

Return Value

array

array getValidationMessages()

No description

Return Value

array

array getValidationRules()

No description

Return Value

array

array validate()

No description

Return Value

array

protected Cloneable cloneComponents()

No description

Return Value

Cloneable

Cloneable getClone()

No description

Return Value

Cloneable

HasColumns columns(array|int|string|null $columns = 2)

No description

Parameters

array|int|string|null $columns

Return Value

HasColumns

array|int|string|null getColumns(string|null $breakpoint = null)

No description

Parameters

string|null $breakpoint

Return Value

array|int|string|null

array getColumnsConfig()

No description

Return Value

array

HasComponents components(array|Closure $components)

No description

Parameters

array|Closure $components

Return Value

HasComponents

HasComponents schema(array|Closure $components)

No description

Parameters

array|Closure $components

Return Value

HasComponents

Component|null getComponent(string|Closure $findComponentUsing, bool $withHidden = false)

No description

Parameters

string|Closure $findComponentUsing
bool $withHidden

Return Value

Component|null

array getFlatComponents(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

array getFlatComponentsByKey(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

array getFlatFields(bool $withHidden = false, bool $withAbsolutePathKeys = false)

No description

Parameters

bool $withHidden
bool $withAbsolutePathKeys

Return Value

array

array getComponents(bool $withHidden = false)

No description

Parameters

bool $withHidden

Return Value

array

HasFieldWrapper fieldWrapperView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

HasFieldWrapper

string|null getCustomFieldWrapperView()

No description

Return Value

string|null

HasInlineLabels inlineLabel(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

HasInlineLabels

bool|null hasInlineLabel()

No description

Return Value

bool|null

HasOperation operation(string|null $operation)

No description

Parameters

string|null $operation

Return Value

HasOperation

HasOperation context(string|null $context) deprecated

deprecated Use `operation()` instead.

No description

Parameters

string|null $context

Return Value

HasOperation

string getOperation()

No description

Return Value

string

void callAfterStateHydrated()

No description

Return Value

void

bool callAfterStateUpdated(string $path)

No description

Parameters

string $path

Return Value

bool

void callBeforeStateDehydrated()

No description

Return Value

void

array dehydrateState(array $state = [], bool $isDehydrated = true)

No description

Parameters

array $state
bool $isDehydrated

Return Value

array

array mutateDehydratedState(array $state = [])

No description

Parameters

array $state

Return Value

array

array mutateStateForValidation(array $state = [])

No description

Parameters

array $state

Return Value

array

HasState fill(array|null $state = null, bool $andCallHydrationHooks = true, bool $andFillStateWithNull = true)

No description

Parameters

array|null $state
bool $andCallHydrationHooks
bool $andFillStateWithNull

Return Value

HasState

void hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)

No description

Parameters

array|null $hydratedDefaultState
bool $andCallHydrationHooks

Return Value

void

void fillStateWithNull()

No description

Return Value

void

HasState statePath(string|null $path)

No description

Parameters

string|null $path

Return Value

HasState

array getState(bool $shouldCallHooksBefore = true, Closure|null $afterValidate = null)

No description

Parameters

bool $shouldCallHooksBefore
Closure|null $afterValidate

Return Value

array

Arrayable getRawState()

No description

Return Value

Arrayable

| Arrayable

array getStateOnly(array $keys, bool $shouldCallHooksBefore = true)

No description

Parameters

array $keys
bool $shouldCallHooksBefore

Return Value

array

array getStateExcept(array $keys, bool $shouldCallHooksBefore = true)

No description

Parameters

array $keys
bool $shouldCallHooksBefore

Return Value

array

string getStatePath(bool $isAbsolute = true)

No description

Parameters

bool $isAbsolute

Return Value

string

protected void flushCachedAbsoluteStatePath()

No description

Return Value

void

HasStateBindingModifiers live(bool $onBlur = false, int|string|null $debounce = null, bool|Closure|null $condition = true)

No description

Parameters

bool $onBlur
int|string|null $debounce
bool|Closure|null $condition

Return Value

HasStateBindingModifiers

HasStateBindingModifiers debounce(int|string|null $delay = 500)

No description

Parameters

int|string|null $delay

Return Value

HasStateBindingModifiers

HasStateBindingModifiers stateBindingModifiers(array|null $modifiers)

No description

Parameters

array|null $modifiers

Return Value

HasStateBindingModifiers

string applyStateBindingModifiers(string $expression, bool $isOptimisticallyLive = true)

No description

Parameters

string $expression
bool $isOptimisticallyLive

Return Value

string

array getStateBindingModifiers(bool $withBlur = true, bool $withDebounce = true, bool $isOptimisticallyLive = true)

No description

Parameters

bool $withBlur
bool $withDebounce
bool $isOptimisticallyLive

Return Value

array

bool isLive()

No description

Return Value

bool

bool isLiveOnBlur()

No description

Return Value

bool

bool isLazy()

No description

Return Value

bool

bool isLiveDebounced()

No description

Return Value

bool

int|string|null getLiveDebounce()

No description

Return Value

int|string|null

int|null getNormalizedLiveDebounce()

No description

Return Value

int|null

ListensToEvents dispatchEvent(string $event, mixed ...$parameters)

No description

Parameters

string $event
mixed ...$parameters

Return Value

ListensToEvents

string|null getComponentFileAttachmentUrl(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

bool deleteUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

bool

array|null getUploadedFiles(string $statePath)

No description

Parameters

string $statePath

Return Value

array|null

bool removeUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

bool

bool reorderUploadedFiles(string $statePath, array $fileKeys)

No description

Parameters

string $statePath
array $fileKeys

Return Value

bool

string|null getSelectOptionLabel(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getSelectOptionLabels(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getSelectOptions(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getSelectSearchResults(string $statePath, string $search)

No description

Parameters

string $statePath
string $search

Return Value

array

HasExtraAttributes extraAttributes(array|Closure $attributes, bool $merge = false)

No description

Parameters

array|Closure $attributes
bool $merge

Return Value

HasExtraAttributes

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

final __construct(HasForms $livewire)

No description

Parameters

HasForms $livewire

static ComponentContainer make(HasForms $livewire)

No description

Parameters

HasForms $livewire

Return Value

ComponentContainer