Documentation

Registrar

Table of Contents

delete()  : Route
Register a new DELETE route with the router.
get()  : Route
Register a new GET route with the router.
group()  : void
Create a route group with shared attributes.
match()  : Route
Register a new route with the given verbs.
options()  : Route
Register a new OPTIONS route with the router.
patch()  : Route
Register a new PATCH route with the router.
post()  : Route
Register a new POST route with the router.
put()  : Route
Register a new PUT route with the router.
resource()  : PendingResourceRegistration
Route a resource to a controller.
substituteBindings()  : Route
Substitute the route bindings onto the route.
substituteImplicitBindings()  : void
Substitute the implicit Eloquent model bindings for the route.

Methods

delete()

Register a new DELETE route with the router.

public delete(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

get()

Register a new GET route with the router.

public get(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

group()

Create a route group with shared attributes.

public group(array<string|int, mixed> $attributes, Closure|string $routes) : void
Parameters
$attributes : array<string|int, mixed>
$routes : Closure|string
Return values
void

match()

Register a new route with the given verbs.

public match(array<string|int, mixed>|string $methods, string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$methods : array<string|int, mixed>|string
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

options()

Register a new OPTIONS route with the router.

public options(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

patch()

Register a new PATCH route with the router.

public patch(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

post()

Register a new POST route with the router.

public post(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

put()

Register a new PUT route with the router.

public put(string $uri, Closure|array<string|int, mixed>|string $action) : Route
Parameters
$uri : string
$action : Closure|array<string|int, mixed>|string
Return values
Route

substituteBindings()

Substitute the route bindings onto the route.

public substituteBindings(Route $route) : Route
Parameters
$route : Route
Return values
Route

substituteImplicitBindings()

Substitute the implicit Eloquent model bindings for the route.

public substituteImplicitBindings(Route $route) : void
Parameters
$route : Route
Return values
void

Search results