Метод |
Описание |
|
any ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new route responding to all verbs. |
|
auth ( ) : void |
Register the typical authentication routes for an application. |
|
bind ( string $key, string | callable $binder ) : void |
Add a new route parameter binder. |
|
controller ( string $uri, string $controller, array $names = [] ) : void |
Route a controller to a URI with wildcard routing. |
|
controllers ( array $controllers ) : void |
Register an array of controllers with wildcard routing. |
|
createClassBinding ( string $binding ) : Closure |
Create a class based binding using the IoC container. |
|
current ( ) : Illuminate\Routing\Route |
Get the currently dispatched route instance. |
|
currentRouteAction ( ) : string | null |
Get the current route action. |
|
currentRouteName ( ) : string | null |
Get the current route name. |
|
currentRouteNamed ( string $name ) : boolean |
Determine if the current route matches a given name. |
|
currentRouteUses ( string $action ) : boolean |
Determine if the current route action matches a given action. |
|
delete ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new DELETE route with the router. |
|
dispatch ( Illuminate\Http\Request $request ) : Illuminate\Http\Response |
Dispatch the request to the application. |
|
dispatchToRoute ( Illuminate\Http\Request $request ) : mixed |
Dispatch the request to a route and return the response. |
|
gatherRouteMiddlewares ( Illuminate\Routing\Route $route ) : array |
Gather the middleware for the given route. |
|
get ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new GET route with the router. |
|
getCurrentRequest ( ) : Illuminate\Http\Request |
Get the request currently being dispatched. |
|
getCurrentRoute ( ) : Illuminate\Routing\Route |
Get the currently dispatched route instance. |
|
getGroupStack ( ) : array |
Get the current group stack for the router. |
|
getLastGroupPrefix ( ) : string |
Get the prefix from the last group on the stack. |
|
getMiddleware ( ) : array |
Get all of the defined middleware short-hand names. |
|
getPatterns ( ) : array |
Get the global "where" patterns. |
|
getRoutes ( ) : Illuminate\Routing\RouteCollection |
Get the underlying route collection. |
|
group ( array $attributes, Closure $callback ) : void |
Create a route group with shared attributes. |
|
has ( string $name ) : boolean |
Check if a route with the given name exists. |
|
hasGroupStack ( ) : boolean |
Determine if the router currently has a group stack. |
|
hasMacro ( string $name ) : boolean |
Checks if macro is registered. |
|
input ( string $key, string $default = null ) : mixed |
Get a route parameter for the current route. |
|
is ( ) : boolean |
Alias for the "currentRouteName" method. |
|
macro ( string $name, callable $macro ) : void |
Register a custom macro. |
|
match ( array | string $methods, string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new route with the given verbs. |
|
matched ( string | callable $callback ) : void |
Register a route matched event listener. |
|
mergeGroup ( array $new, array $old ) : array |
Merge the given group attributes. |
|
mergeWithLastGroup ( array $new ) : array |
Merge the given array with the last group stack. |
|
middleware ( string $name, string $class ) |
Register a short-hand name for a middleware. |
|
middlewareGroup ( string $name, array $middleware ) |
Register a group of middleware. |
|
model ( string $key, string $class, Closure | null $callback = null ) : void |
Register a model binder for a wildcard. |
|
options ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new OPTIONS route with the router. |
|
patch ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new PATCH route with the router. |
|
pattern ( string $key, string $pattern ) : void |
Set a global where pattern on all routes. |
|
patterns ( array $patterns ) : void |
Set a group of global where patterns on all routes. |
|
post ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new POST route with the router. |
|
prepareResponse ( Request $request, mixed $response ) : Illuminate\Http\Response |
Create a response instance from the given value. |
|
prependMiddlewareToGroup ( string $group, string $middleware ) |
Add a middleware to the beginning of a middleware group. |
|
pushMiddlewareToGroup ( string $group, string $middleware ) |
Add a middleware to the end of a middleware group. |
|
put ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route |
Register a new PUT route with the router. |
|
resolveMiddlewareClassName ( string $name ) : string | array |
Resolve the middleware name to a class name(s) preserving passed parameters. |
|
resource ( string $name, string $controller, array $options = [] ) : void |
Route a resource to a controller. |
|
resourceParameters ( array $parameters = [] ) : void |
Set the global resource parameter mapping. |
|
resources ( array $resources ) : void |
Register an array of resource controllers. |
|
setRoutes ( Illuminate\Routing\RouteCollection $routes ) : void |
Set the route collection instance. |
|
singularResourceParameters ( ) : void |
Set the unmapped global resource parameters to singular. |
|
uses ( ) : boolean |
Alias for the "currentRouteUses" method. |
|