class Route (View source)
RouteDependencyResolverTrait |
static array | $validators | The validators used by the routes. |
array | resolveMethodDependencies( array $parameters, ReflectionFunctionAbstract $reflector) Resolve the given method's type-hinted dependencies. | from RouteDependencyResolverTrait |
void | __construct( array $methods, string $uri, Closure|array $action) Create a new Route instance. | |
mixed | run( Request $request) Run the route action and return the response. | |
bool | matches( Request $request, bool $includingMethod = true) Determine if the route matches given request. | |
$this|array | middleware( array|string|null $middleware = null) Get or set the middlewares attached to the route. | |
array | beforeFilters() Get the "before" filters for the route. | |
array | afterFilters() Get the "after" filters for the route. | |
static array | parseFilters( string $filters) Parse the given filter string. | |
static array | parseFilter( string $filter) Parse the given filter into name and parameters. | |
bool | hasParameter( string $name) Determine a given parameter exists from the route. | |
string|object | getParameter( string $name, mixed $default = null) Get a given parameter from the route. | |
string|object | parameter( string $name, mixed $default = null) Get a given parameter from the route. | |
void | setParameter( string $name, mixed $value) Set a parameter to the given value. | |
void | forgetParameter( string $name) Unset a parameter on the route if it is set. | |
array | parameters() Get the key / value list of parameters for the route. | |
array | parametersWithoutNulls() Get the key / value list of parameters without null values. | |
array | parameterNames() Get all of the parameter names for the route. | |
$this | bind( Request $request) Bind the route to a given request for execution. | |
array | bindParameters( Request $request) Extract the parameter list from the request. | |
static array | getValidators() Get the route validators for the instance. | |
$this | before( string $filters) Add before filters to the route. | |
$this | after( string $filters) Add after filters to the route. | |
$this | defaults( string $key, mixed $value) Set a default value for the route. | |
$this | where( array|string $name, string $expression = null) Set a regular expression requirement on the route. | |
$this | prefix( string $prefix) Add a prefix to the route URI. | |
string | getPath() Get the URI associated with the route. | |
string | uri() Get the URI associated with the route. | |
array | getMethods() Get the HTTP verbs the route responds to. | |
array | methods() Get the HTTP verbs the route responds to. | |
bool | httpOnly() Determine if the route only responds to HTTP requests. | |
bool | httpsOnly() Determine if the route only responds to HTTPS requests. | |
bool | secure() Determine if the route only responds to HTTPS requests. | |
string|null | domain() Get the domain defined for the route. | |
string | getUri() Get the URI that the route responds to. | |
Route | setUri( string $uri) Set the URI that the route responds to. | |
string | getPrefix() Get the prefix of the route instance. | |
string | getName() Get the name of the route instance. | |
$this | name( string $name) Add or change the route name. | |
string | getActionName() Get the action name for the route. | |
array | getAction() Get the action array for the route. | |
$this | setAction( array $action) Set the action array for the route. | |
CompiledRoute | getCompiled() Get the compiled version of the route. | |
$this | setContainer( Container $container) Set the container instance on the route. | |
void | prepareForSerialization() Prepare the route instance for serialization. | |
mixed | __get( string $key) Dynamically access route parameters. |
Resolve the given method's type-hinted dependencies.
Create a new Route instance.
Run the route action and return the response.
Determine if the route matches given request.
Get or set the middlewares attached to the route.
Get the "before" filters for the route.
Get the "after" filters for the route.
Parse the given filter string.
Parse the given filter into name and 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.
Bind the route to a given request for execution.
Extract the parameter list from the request.
Get the route validators for the instance.
Add before filters to the route.
Add after filters to the route.
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.
Set the container instance on the route.
Prepare the route instance for serialization.
Dynamically access route parameters.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Routing/Route.html