CreatesRegularExpressionRouteConstraints
trait CreatesRegularExpressionRouteConstraints (View source)
Methods
$this | whereAlpha(array|string $parameters) Specify that the given route parameters must be alphabetic. | |
$this | whereAlphaNumeric(array|string $parameters) Specify that the given route parameters must be alphanumeric. | |
$this | whereNumber(array|string $parameters) Specify that the given route parameters must be numeric. | |
$this | whereUuid(array|string $parameters) Specify that the given route parameters must be UUIDs. | |
$this | assignExpressionToParameters(array|string $parameters, string $expression) Apply the given regular expression to the given parameters. |
Details
$this whereAlpha(array|string $parameters)
Specify that the given route parameters must be alphabetic.
$this whereAlphaNumeric(array|string $parameters)
Specify that the given route parameters must be alphanumeric.
$this whereNumber(array|string $parameters)
Specify that the given route parameters must be numeric.
$this whereUuid(array|string $parameters)
Specify that the given route parameters must be UUIDs.
protected $this assignExpressionToParameters(array|string $parameters, string $expression)
Apply the given regular expression to the given parameters.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/CreatesRegularExpressionRouteConstraints.html