trait CreatesRegularExpressionRouteConstraints

Methods

whereAlpha(array|string $parameters)

Specify that the given route parameters must be alphabetic.

whereAlphaNumeric(array|string $parameters)

Specify that the given route parameters must be alphanumeric.

whereNumber(array|string $parameters)

Specify that the given route parameters must be numeric.

whereUlid(array|string $parameters)

Specify that the given route parameters must be ULIDs.

whereUuid(array|string $parameters)

Specify that the given route parameters must be UUIDs.

whereIn(array|string $parameters, array $values)

Specify that the given route parameters must be one of the given values.

assignExpressionToParameters(array|string $parameters, string $expression)

Apply the given regular expression to the given parameters.

Details

at line 16
CreatesRegularExpressionRouteConstraints whereAlpha(array|string $parameters)

Specify that the given route parameters must be alphabetic.

Parameters

array|string $parameters

Return Value

CreatesRegularExpressionRouteConstraints

at line 24
CreatesRegularExpressionRouteConstraints whereAlphaNumeric(array|string $parameters)

Specify that the given route parameters must be alphanumeric.

Parameters

array|string $parameters

Return Value

CreatesRegularExpressionRouteConstraints

at line 32
CreatesRegularExpressionRouteConstraints whereNumber(array|string $parameters)

Specify that the given route parameters must be numeric.

Parameters

array|string $parameters

Return Value

CreatesRegularExpressionRouteConstraints

at line 40
CreatesRegularExpressionRouteConstraints whereUlid(array|string $parameters)

Specify that the given route parameters must be ULIDs.

Parameters

array|string $parameters

Return Value

CreatesRegularExpressionRouteConstraints

at line 48
CreatesRegularExpressionRouteConstraints whereUuid(array|string $parameters)

Specify that the given route parameters must be UUIDs.

Parameters

array|string $parameters

Return Value

CreatesRegularExpressionRouteConstraints

at line 56
CreatesRegularExpressionRouteConstraints whereIn(array|string $parameters, array $values)

Specify that the given route parameters must be one of the given values.

Parameters

array|string $parameters
array $values

Return Value

CreatesRegularExpressionRouteConstraints

at line 69
protected CreatesRegularExpressionRouteConstraints assignExpressionToParameters(array|string $parameters, string $expression)

Apply the given regular expression to the given parameters.

Parameters

array|string $parameters
string $expression

Return Value

CreatesRegularExpressionRouteConstraints