Registrar
interface Registrar
Methods
delete(string $uri, array|string|callable $action)
Register a new DELETE route with the router.
options(string $uri, array|string|callable $action)
Register a new OPTIONS route with the router.
match(array|string $methods, string $uri, array|string|callable $action)
Register a new route with the given verbs.
resource(string $name, string $controller, array $options = [])
Route a resource to a controller.
mixed
substituteImplicitBindings(Route $route)
Substitute the implicit Eloquent model bindings for the route.
Details
at line 16
Route
get(string $uri, array|string|callable $action)
Register a new GET route with the router.
at line 21
Route
post(string $uri, array|string|callable $action)
Register a new POST route with the router.
at line 26
Route
put(string $uri, array|string|callable $action)
Register a new PUT route with the router.
at line 31
Route
delete(string $uri, array|string|callable $action)
Register a new DELETE route with the router.
at line 36
Route
patch(string $uri, array|string|callable $action)
Register a new PATCH route with the router.
at line 41
Route
options(string $uri, array|string|callable $action)
Register a new OPTIONS route with the router.
at line 46
Route
match(array|string $methods, string $uri, array|string|callable $action)
Register a new route with the given verbs.
at line 51
PendingResourceRegistration
resource(string $name, string $controller, array $options = [])
Route a resource to a controller.
at line 56
Registrar
group(array $attributes, Closure|array|string $routes)
Create a route group with shared attributes.
at line 66
mixed
substituteImplicitBindings(Route $route)
Substitute the implicit Eloquent model bindings for the route.