BaseAction
abstract class BaseAction extends ViewComponent (View source)
Traits
Properties
static protected array | $configurations | from Configurable | |
static protected array | $importantConfigurations | from Configurable | |
protected string | $evaluationIdentifier | ||
protected array | $evaluationParametersToRemove | from EvaluatesClosures | |
protected string | $view | from ViewComponent | |
protected array | $viewData | from ViewComponent | |
protected string | $viewIdentifier | ||
static protected array | $propertyCache | from ViewComponent | |
static protected array | $methodCache | from ViewComponent | |
protected bool|Closure | $isDisabled | from CanBeDisabled | |
protected | $authorization | from CanBeHidden | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected string|Closure|null | $color | from HasColor | |
protected string|Closure|null | $icon | from HasIcon | |
protected string|Closure|null | $iconPosition | from HasIcon | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string | $name | from HasName | |
protected string|Closure|null | $size | from HasSize | |
protected array | $extraAttributes | from HasExtraAttributes |
Methods
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
CanBeDisabled
disabled(bool|Closure $condition = true)
No description
bool
isDisabled()
No description
bool
isEnabled()
No description
CanBeHidden
authorize($abilities, Model|array|null $arguments = null)
No description
CanBeHidden
authorizeAny(string|array $abilities, Model|array|null $arguments = null)
No description
protected array
parseAuthorizationArguments(array $arguments)
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
bool
isHidden()
No description
bool
isAuthorized()
No description
HasColor
color(string|Closure|null $color)
No description
string|null
getColor()
No description
HasIcon
icon(string|Closure|null $icon)
No description
HasIcon
iconPosition(string|Closure|null $position)
No description
string|null
getIcon()
No description
string|null
getIconPosition()
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
string
getName()
No description
HasSize
size(string|Closure|null $size)
No description
string|null
getSize()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
final
__construct(string $name)
No description
static BaseAction
make(string|null $name = null)
No description
static string|null
getDefaultName()
No description
BaseAction
withAttributes(array $attributes)
deprecated
deprecated
No description