Form
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
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
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 protected callable|null
getMacro(string $method)
No description
ViewComponent
view(string|null $view, array $viewData = [])
No description
ViewComponent
defaultView(string|Closure|null $view)
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string|null
getDefaultView()
No description
string
toHtml()
No description
View
render()
No description
BelongsToLivewire
livewire(HasForms $livewire)
No description
HasForms
getLivewire()
No description
BelongsToModel
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
BelongsToParentComponent
parentComponent(Component $component)
No description
Component|null
getParentComponent()
No description
bool
isRoot()
No description
CanBeDisabled
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
Cloneable
getClone()
No description
HasColumns
columns(array|int|string|null $columns = 2)
No description
array|int|string|null
getColumns(string|null $breakpoint = null)
No description
array
getColumnsConfig()
No description
HasComponents
components(array|Closure $components)
No description
HasComponents
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
HasFieldWrapper
fieldWrapperView(string|Closure|null $view)
No description
string|null
getCustomFieldWrapperView()
No description
HasInlineLabels
inlineLabel(bool|Closure|null $condition = true)
No description
bool|null
hasInlineLabel()
No description
HasOperation
operation(string|null $operation)
No description
HasOperation
context(string|null $context)
deprecated
deprecated
No description
string
getOperation()
No description
void
callAfterStateHydrated()
No description
bool
callAfterStateUpdated(string $path)
No description
void
callBeforeStateDehydrated()
No description
array
dehydrateState(array $state = [], bool $isDehydrated = true)
No description
array
mutateDehydratedState(array $state = [])
No description
array
mutateStateForValidation(array $state = [])
No description
HasState
fill(array|null $state = null, bool $andCallHydrationHooks = true, bool $andFillStateWithNull = true)
No description
void
hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)
No description
void
fillStateWithNull()
No description
HasState
statePath(string|null $path)
No description
array
getState(bool $shouldCallHooksBefore = true, Closure|null $afterValidate = null)
No description
Arrayable
getRawState()
No description
array
getStateOnly(array $keys, bool $shouldCallHooksBefore = true)
No description
array
getStateExcept(array $keys, bool $shouldCallHooksBefore = true)
No description
string
getStatePath(bool $isAbsolute = true)
No description
protected void
flushCachedAbsoluteStatePath()
No description
HasStateBindingModifiers
live(bool $onBlur = false, int|string|null $debounce = null, bool|Closure|null $condition = true)
No description
HasStateBindingModifiers
reactive()
No description
HasStateBindingModifiers
lazy()
No description
HasStateBindingModifiers
debounce(int|string|null $delay = 500)
No description
HasStateBindingModifiers
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
ListensToEvents
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
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
final
__construct(HasForms $livewire)
No description
static ComponentContainer
make(HasForms $livewire)
No description