Skip to content

Configuration

whereIn()

whereIn() — returns struct

Available in: mapper Category: Routing

Constrain a route variable to only match one of a set of allowed values. Similar to an enum constraint.

NameTypeRequiredDefaultDescription
variableNamestringyes—The route variable name to constrain.
valuesstringyes—A comma-delimited list of allowed values (e.g., "active,inactive,pending").