interface
Illuminate
/
Contracts
/
Routing
/
Registrar
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Registrar
Methods
public
get ( $uri , $action ) : Route
Register a new GET route with the router.
Parameters
- $uri string
- $action array|string|callable
public
post ( $uri , $action ) : Route
Register a new POST route with the router.
Parameters
- $uri string
- $action array|string|callable
public
put ( $uri , $action ) : Route
Register a new PUT route with the router.
Parameters
- $uri string
- $action array|string|callable
public
delete ( $uri , $action ) : Route
Register a new DELETE route with the router.
Parameters
- $uri string
- $action array|string|callable
public
patch ( $uri , $action ) : Route
Register a new PATCH route with the router.
Parameters
- $uri string
- $action array|string|callable
public
options ( $uri , $action ) : Route
Register a new OPTIONS route with the router.
Parameters
- $uri string
- $action array|string|callable
public
match ( $methods , $uri , $action ) : Route
Register a new route with the given verbs.
Parameters
- $methods array|string
- $uri string
- $action array|string|callable
public
resource ( $name , $controller , array $options ) : PendingResourceRegistration
Route a resource to a controller.
Parameters
- $name string
- $controller string
- $options array
public
group ( array $attributes , $routes ) : void
Create a route group with shared attributes.
Parameters
- $attributes array
- $routes Closure |string
public
substituteBindings ( $route ) : Route
Substitute the route bindings onto the route.
Parameters
- $route Route
public
substituteImplicitBindings ( $route ) : void
Substitute the implicit Eloquent model bindings for the route.
Parameters
- $route Route