Card
class Card extends Component implements CanEntangleWithSingularRelationships (View source)
Traits
Properties
static protected array | $configurations | from Configurable | |
static protected array | $importantConfigurations | from Configurable | |
protected string | $evaluationIdentifier | from EvaluatesClosures | |
protected array | $evaluationParametersToRemove | from EvaluatesClosures | |
protected string | $view | ||
protected array | $viewData | from ViewComponent | |
protected string | $viewIdentifier | from ViewComponent | |
static protected array | $propertyCache | from ViewComponent | |
static protected array | $methodCache | from ViewComponent | |
protected ComponentContainer | $container | from BelongsToContainer | |
protected Model|string|Closure|null | $model | from BelongsToModel | |
protected Closure|null | $loadStateFromRelationshipsUsing | from BelongsToModel | |
protected Closure|null | $saveRelationshipsUsing | from BelongsToModel | |
protected Closure|null | $saveRelationshipsBeforeChildrenUsing | from BelongsToModel | |
protected bool|Closure | $shouldSaveRelationshipsWhenHidden | from BelongsToModel | |
protected Component|bool|null | $cachedConcealingComponent | from CanBeConcealed | |
protected bool|Closure | $isDisabled | from CanBeDisabled | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected array | $columnSpan | from CanSpanColumns | |
protected array | $actions | from HasActions | |
protected Model|string|null | $actionFormModel | from HasActions | |
protected array|Closure | $childComponents | from HasChildComponents | |
protected string|Closure|null | $fieldWrapperView | from HasFieldWrapper | |
protected bool|Closure|null | $hasInlineLabel | from HasInlineLabel | |
protected string|Closure|null | $id | from HasId | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string|Closure|null | $maxWidth | from HasMaxWidth | |
protected array | $meta | from HasMeta | |
protected Closure|null | $afterStateHydrated | from HasState | |
protected Closure|null | $afterStateUpdated | from HasState | |
protected Closure|null | $beforeStateDehydrated | from HasState | |
protected | $defaultState | from HasState | |
protected Closure|null | $dehydrateStateUsing | from HasState | |
protected Closure|null | $mutateDehydratedStateUsing | from HasState | |
protected bool | $hasDefaultState | from HasState | |
protected bool|Closure | $isDehydrated | from HasState | |
protected string|null | $statePath | from HasState | |
protected array | $listeners | from ListensToEvents | |
protected array|null | $columns | from HasColumns | |
protected array | $extraAttributes | from HasExtraAttributes | |
protected | $stateBindingModifiers | from HasStateBindingModifiers | |
protected string|int|null | $debounce | from HasStateBindingModifiers | |
protected Model|null | $cachedExistingRecord | from EntanglesStateWithSingularRelationship | |
protected string|null | $relationship | from EntanglesStateWithSingularRelationship | |
protected Closure|null | $mutateRelationshipDataBeforeCreateUsing | from EntanglesStateWithSingularRelationship | |
protected Closure|null | $mutateRelationshipDataBeforeFillUsing | from EntanglesStateWithSingularRelationship | |
protected Closure|null | $mutateRelationshipDataBeforeSaveUsing | from EntanglesStateWithSingularRelationship |
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
Details
static
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
evaluate($value, array $parameters = [], array $exceptParameters = [])
No description
protected array
getDefaultEvaluationParameters()
No description
protected
resolveEvaluationParameter(string $parameter, Closure $value)
No description
protected bool
isEvaluationParameterRemoved(string $parameter)
No description
ViewComponent
view(string $view, array $viewData = [])
No description
protected array
extractPublicProperties()
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string
toHtml()
No description
View
render()
No description
BelongsToContainer
container(ComponentContainer $container)
No description
ComponentContainer
getContainer()
No description
HasForms
getLivewire()
No description
BelongsToModel
model(Model|string|Closure|null $model = null)
No description
void
saveRelationships()
No description
void
saveRelationshipsBeforeChildren()
No description
void
loadStateFromRelationships(bool $andHydrate = false)
No description
BelongsToModel
saveRelationshipsUsing(Closure|null $callback)
No description
BelongsToModel
saveRelationshipsBeforeChildrenUsing(Closure|null $callback)
No description
BelongsToModel
saveRelationshipsWhenHidden(bool|Closure $condition = true)
No description
bool
shouldSaveRelationshipsWhenHidden()
No description
BelongsToModel
loadStateFromRelationshipsUsing(Closure|null $callback)
No description
string|null
getModel()
No description
Model|null
getRecord()
No description
Model|null
getModelInstance()
No description
Component|null
getConcealingComponent()
No description
bool
isConcealed()
No description
CanBeDisabled
disabled(bool|Closure $condition = true)
No description
CanBeDisabled
disabledOn(string|array $contexts)
No description
bool
isDisabled()
No description
bool
isEnabled()
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
hiddenOn(string|array $contexts)
No description
CanBeHidden
hiddenWhenAllChildComponentsHidden()
No description
CanBeHidden
when(bool|Closure $condition = true)
No description
CanBeHidden
whenTruthy(string|array $paths)
No description
CanBeHidden
whenFalsy(string|array $paths)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
CanBeHidden
visibleOn(string|array $contexts)
No description
bool
isHidden()
No description
CanSpanColumns
columnSpan(array|int|string|Closure|null $span)
No description
CanSpanColumns
columnSpanFull()
No description
array|int|string|null
getColumnSpan(int|string|null $breakpoint = null)
No description
Cloneable
getClone()
No description
HasActions
registerActions(array $actions)
No description
Action|Closure|null
getAction(string $name)
No description
array
getActions()
No description
HasActions
actionFormModel(Model|string|null $model)
No description
Model|string|null
getActionFormModel()
No description
bool
hasAction(string $name)
No description
HasChildComponents
childComponents(array|Closure $components)
No description
HasChildComponents
schema(array|Closure $components)
No description
array
getChildComponents()
No description
ComponentContainer
getChildComponentContainer($key = null)
No description
array
getChildComponentContainers(bool $withHidden = false)
No description
bool
hasChildComponentContainer(bool $withHidden = false)
No description
HasFieldWrapper
fieldWrapperView(string|Closure|null $view)
No description
string
getFieldWrapperView()
No description
string|null
getCustomFieldWrapperView()
No description
HasInlineLabel
inlineLabel(bool|Closure|null $condition = true)
No description
bool|null
hasInlineLabel()
No description
in
HasId at line 11
HasId
id(string|Closure|null $id)
No description
in
HasId at line 18
string|null
getId()
No description
HasLabel
disableLabel(bool|Closure $condition = true)
No description
HasLabel
label(Htmlable|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
Htmlable|null
getLabel()
No description
bool
isLabelHidden()
No description
HasMaxWidth
maxWidth(string|Closure|null $width)
No description
string|null
getMaxWidth()
No description
HasMeta
meta(string $key, $value)
No description
getMeta(string|array|null $keys = null)
No description
bool
hasMeta(string|array $keys)
No description
HasState
callAfterStateHydrated()
No description
HasState
callAfterStateUpdated()
No description
HasState
callBeforeStateDehydrated()
No description
HasState
default($state)
No description
HasState
dehydrated(bool|Closure $condition = true)
No description
array
getStateToDehydrate()
No description
void
dehydrateState(array $state)
No description
void
hydrateState(array|null $hydratedDefaultState)
No description
void
fill()
No description
void
hydrateDefaultState(array|null $hydratedDefaultState)
No description
void
fillStateWithNull()
No description
mutateDehydratedState($state)
No description
bool
mutatesDehydratedState()
No description
HasState
state($state)
No description
HasState
statePath(string|null $path)
No description
getDefaultState()
No description
getState()
No description
getOldState()
No description
string
getStatePath(bool $isAbsolute = true)
No description
protected bool
hasDefaultState()
No description
bool
isDehydrated()
No description
protected Closure
getGetCallback()
No description
protected Closure
getSetCallback()
No description
protected string
generateRelativeStatePath(Component $path, bool $isAbsolute = false)
No description
ListensToEvents
dispatchEvent(string $event, ...$parameters)
No description
ListensToEvents
registerListeners(array $listeners)
No description
array
getListeners(string $event = null)
No description
HasColumns
columns(array|int|string|null $columns = 2)
No description
array|int|string|null
getColumns($breakpoint = null)
No description
array
getColumnsConfig()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
HasStateBindingModifiers
reactive(bool $condition = true)
No description
HasStateBindingModifiers
lazy(bool $condition = true)
No description
HasStateBindingModifiers
debounce(string|int|null $delay = '500ms')
No description
HasStateBindingModifiers
stateBindingModifiers(array|null $modifiers)
No description
string
applyStateBindingModifiers(string $expression, array $lazilyEntangledModifiers = [])
No description
array
getStateBindingModifiers()
No description
bool
isReactive()
No description
bool
isLazy()
No description
bool
isDebounced()
No description
string|int|null
getDebounce()
No description
protected bool
shouldEvaluateWithState()
No description
EntanglesStateWithSingularRelationship
relationship(string $relationshipName, bool|Closure $condition = true)
No description
void
fillFromRelationship()
No description
protected array
getStateFromRelatedRecord(Model $record)
No description
MorphOne|null
getRelationship()
No description
string|null
getRelationshipName()
No description
string|null
getRelatedModel()
No description
EntanglesStateWithSingularRelationship
cachedExistingRecord(Model|null $record)
No description
Model|null
getCachedExistingRecord()
No description
void
clearCachedExistingRecord()
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeCreateUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeCreate(array $data)
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeSaveUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeFill(array $data)
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeFillUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeSave(array $data)
No description
final
__construct(array $schema = [])
No description
static Card
make(array $schema = [])
No description