Skip to content

Configuration

whereAlpha()

whereAlpha() — returns struct

Available in: mapper Category: Routing

Constrain a route variable to only match alphabetic characters (a-zA-Z). Similar to Laravel’s whereAlpha() or ASP.NET’s :alpha constraint.

NameTypeRequiredDefaultDescription
variableNamestringyesThe route variable name to constrain. Can also be a comma-delimited list.