Route
class Route (View source)
Traits
Properties
static array | $validators | The validators used by the routes. |
Methods
Resolve the given method's type-hinted dependencies.
Create a new Route instance.
Get or set the middlewares attached to the route.
Get the parameters that are listed in the route / controller signature.
Determine if the route has parameters.
Determine a given parameter exists from the route.
Get a given parameter from the route.
Get a given parameter from the route.
Set a parameter to the given value.
Unset a parameter on the route if it is set.
Get the key / value list of parameters for the route.
Get the key / value list of parameters without null values.
Get all of the parameter names for the route.
Get the route validators for the instance.
Set a default value for the route.
Set a regular expression requirement on the route.
Add a prefix to the route URI.
Get the URI associated with the route.
Get the URI associated with the route.
Get the HTTP verbs the route responds to.
Get the HTTP verbs the route responds to.
Determine if the route only responds to HTTP requests.
Determine if the route only responds to HTTPS requests.
Determine if the route only responds to HTTPS requests.
Get the domain defined for the route.
Get the URI that the route responds to.
Set the URI that the route responds to.
Get the prefix of the route instance.
Get the name of the route instance.
Add or change the route name.
Get the action name for the route.
Get the action array for the route.
Set the action array for the route.
Get the compiled version of the route.
Prepare the route instance for serialization.
Dynamically access route parameters.
Details
in RouteDependencyResolverTrait at line line 52
array
resolveMethodDependencies(
array $parameters,
ReflectionFunctionAbstract $reflector)
Resolve the given method's type-hinted dependencies.
at line line 110
void
__construct(
array|string $methods,
string $uri,
Closure|array $action)
Create a new Route instance.
at line line 184
bool
matches(
Request $request,
bool $includingMethod = true)
Determine if the route matches given request.
at line line 235
$this|array
middleware(
array|string|null $middleware = null)
Get or set the middlewares attached to the route.
at line line 273
array
signatureParameters(
string|null $subClass = null)
Get the parameters that are listed in the route / controller signature.
at line line 306
bool
hasParameter(
string $name)
Determine a given parameter exists from the route.
at line line 322
string|object
getParameter(
string $name,
mixed $default = null)
Get a given parameter from the route.
at line line 334
string|object
parameter(
string $name,
mixed $default = null)
Get a given parameter from the route.
at line line 390
array
parametersWithoutNulls()
Get the key / value list of parameters without null values.
at line line 446
array
bindParameters(
Request $request)
Extract the parameter list from the request.
at line line 630
$this
where(
array|string $name,
string $expression = null)
Set a regular expression requirement on the route.