trait
Illuminate
/
Routing
/
CreatesRegularExpressionRouteConstraints
You are viewing an older version of the documentation. For the latest, please visit master documentation.
CreatesRegularExpressionRouteConstraints
Methods
public
whereAlpha ( $parameters ) : $this
Specify that the given route parameters must be alphabetic.
Parameters
- $parameters array|string
public
whereAlphaNumeric ( $parameters ) : $this
Specify that the given route parameters must be alphanumeric.
Parameters
- $parameters array|string
public
whereNumber ( $parameters ) : $this
Specify that the given route parameters must be numeric.
Parameters
- $parameters array|string
public
whereUuid ( $parameters ) : $this
Specify that the given route parameters must be UUIDs.
Parameters
- $parameters array|string
protected
assignExpressionToParameters ( $parameters , $expression ) : $this
Apply the given regular expression to the given parameters.
Parameters
- $parameters array|string
- $expression string