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
variableNamestringyesThe route variable name to constrain.
valuesstringyesA comma-delimited list of allowed values (e.g., "active,inactive,pending").