RouteRegistrar (Routing)
RouteRegistrar
class RouteRegistrar (View source)
Methods
void | __construct(Router $router) Create a new route registrar instance. | |
$this | attribute(string $key, mixed $value) Set the value for a given attribute. | |
void | resource(string $name, string $controller, array $options = array()) Route a resource to a controller. | |
void | group(Closure|string $callback) Create a route group with shared attributes. | |
Route | match(array|string $methods, string $uri, Closure|array|string|null $action = null) Register a new route with the given verbs. | |
Route|$this | __call(string $method, array $parameters) Dynamically handle calls into the route registrar. |
Details
void __construct(Router $router)
Create a new route registrar instance.
$this attribute(string $key, mixed $value)
Set the value for a given attribute.
void resource(string $name, string $controller, array $options = array())
Route a resource to a controller.
void group(Closure|string $callback)
Create a route group with shared attributes.
Route match(array|string $methods, string $uri, Closure|array|string|null $action = null)
Register a new route with the given verbs.
Route|$this __call(string $method, array $parameters)
Dynamically handle calls into the route registrar.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Routing/RouteRegistrar.html