Constraint
class Constraint extends Component (View source)
Traits
Constants
OPERATOR_SELECT_NAME |
|
Properties
protected string | $evaluationIdentifier | ||
static protected Closure>> | $macros | from Macroable | |
protected string|Closure|null | $label | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string | $name | from HasName | |
protected Operator[] | $operators | from HasOperators | |
protected Htmlable|Closure|null | $icon | from HasIcon | |
protected IconPosition|string|Closure|null | $iconPosition | from HasIcon | |
protected IconSize|string|Closure|null | $iconSize | from HasIcon | |
protected string|Closure|null | $attribute | ||
protected string|Closure|null | $attributeLabel | ||
protected string|Closure|null | $relationship | ||
protected Closure|null | $modifyRelationshipQueryUsing | ||
protected array<string,mixed> | $settings | ||
protected bool|null | $isInverse | ||
protected QueryBuilder | $filter |
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
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
HasLabel
label(string|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
string
getLabel()
No description
string
getName()
No description
HasOperators
unshiftOperators(array $operators)
No description
HasOperators
operators(array $operators)
No description
HasOperators
pushOperators(array $operators)
No description
array
getOperators()
No description
Operator|null
getOperator(string $name)
No description
HasIcon
icon(Htmlable|Closure|null $icon)
No description
HasIcon
iconPosition(IconPosition|string|Closure|null $position)
No description
HasIcon
iconSize(IconSize|string|Closure|null $size)
No description
Htmlable|null
getIcon()
No description
IconPosition|string
getIconPosition()
No description
IconSize|string|null
getIconSize()
No description
final
__construct(string $name)
No description
static Constraint
make(string $name)
No description
Block
getBuilderBlock()
No description
array
getOperatorSelectOptions()
No description
array
parseOperatorString(string $operator)
No description
Constraint
attribute(string|Closure|null $name)
No description
Constraint
attributeLabel(string|Closure|null $label)
No description
Constraint
relationship(string $name, string $titleAttribute, Closure|null $modifyQueryUsing = null)
No description
Constraint
filter(QueryBuilder $filter)
No description
QueryBuilder
getFilter()
No description
string
getAttribute()
No description
string
getAttributeLabel()
No description
bool
queriesRelationships()
No description
string
getRelationshipName()
No description
string
getAttributeForQuery()
No description
Closure|null
getModifyRelationshipQueryUsing()
No description
Constraint
settings(array|null $settings)
No description
Constraint
inverse(bool|null $condition = true)
No description
array|null
getSettings()
No description
bool|null
isInverse()
No description