Skip to content

Configuration

whereMatch()

whereMatch() — returns struct

Available in: mapper Category: Routing

Constrain a route variable with a custom regex pattern.

NameTypeRequiredDefaultDescription
variableNamestringyes—The route variable name to constrain.
patternstringyes—The regex pattern the variable must match.