Skip to content

Configuration

whereMatch()

whereMatch() — returns struct

Available in: mapper Category: Routing

Constrain a route variable with a custom regex pattern.

NameTypeRequiredDefaultDescription
variableNamestringyesThe route variable name to constrain.
patternstringyesThe regex pattern the variable must match.