Registrar
interface Registrar (View source)
Methods
Register a new DELETE route with the router.
Register a new OPTIONS route with the router.
Register a new route with the given verbs.
Route a resource to a controller.
Substitute the implicit Eloquent model bindings for the route.
Details
Route
get(string $uri, array|string|callable $action)
Register a new GET route with the router.
Route
post(string $uri, array|string|callable $action)
Register a new POST route with the router.
Route
put(string $uri, array|string|callable $action)
Register a new PUT route with the router.
Route
delete(string $uri, array|string|callable $action)
Register a new DELETE route with the router.
Route
patch(string $uri, array|string|callable $action)
Register a new PATCH route with the router.
Route
options(string $uri, array|string|callable $action)
Register a new OPTIONS route with the router.
Route
match(array|string $methods, string $uri, array|string|callable $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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.