trait Illuminate / Routing / CreatesRegularExpressionRouteConstraints

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

whereUlid ( $parameters ) : $this

Specify that the given route parameters must be ULIDs.

Parameters

  • $parameters array|string
public

whereUuid ( $parameters ) : $this

Specify that the given route parameters must be UUIDs.

Parameters

  • $parameters array|string
public

whereIn ( $parameters , array $values ) : $this

Specify that the given route parameters must be one of the given values.

Parameters

  • $parameters array|string
  • $values array
protected

assignExpressionToParameters ( $parameters , $expression ) : $this

Apply the given regular expression to the given parameters.

Parameters

  • $parameters array|string
  • $expression string