Registrar
interface Registrar (View source)
Methods
resource(string $name, string $controller, array $options = [])
Route a resource to a controller.
void
substituteImplicitBindings(Route $route)
Substitute the implicit Eloquent model bindings for the route.
Details
Route
delete(string $uri, Closure|array|string $action)
Register a new DELETE route with the router.
Route
options(string $uri, Closure|array|string $action)
Register a new OPTIONS route with the router.
Route
match(array|string $methods, string $uri, Closure|array|string $action)
Register a new route with the given verbs.
PendingResourceRegistration
resource(string $name, string $controller, array $options = [])
Route a resource to a controller.
void
group(array $attributes, Closure|string $routes)
Create a route group with shared attributes.
void
substituteImplicitBindings(Route $route)
Substitute the implicit Eloquent model bindings for the route.