interface Registrar

Methods

get(string $uri, array|string|callable $action)

Register a new GET route with the router.

post(string $uri, array|string|callable $action)

Register a new POST route with the router.

put(string $uri, array|string|callable $action)

Register a new PUT route with the router.

delete(string $uri, array|string|callable $action)

Register a new DELETE route with the router.

patch(string $uri, array|string|callable $action)

Register a new PATCH 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.

group(array $attributes, Closure|array|string $routes)

Create a route group with shared attributes.

substituteBindings(Route $route)

Substitute the route bindings onto the route.

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.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 21
Route post(string $uri, array|string|callable $action)

Register a new POST route with the router.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 26
Route put(string $uri, array|string|callable $action)

Register a new PUT route with the router.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 31
Route delete(string $uri, array|string|callable $action)

Register a new DELETE route with the router.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 36
Route patch(string $uri, array|string|callable $action)

Register a new PATCH route with the router.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 41
Route options(string $uri, array|string|callable $action)

Register a new OPTIONS route with the router.

Parameters

string $uri
array|string|callable $action

Return Value

Route

at line 46
Route match(array|string $methods, string $uri, array|string|callable $action)

Register a new route with the given verbs.

Parameters

array|string $methods
string $uri
array|string|callable $action

Return Value

Route

at line 51
PendingResourceRegistration resource(string $name, string $controller, array $options = [])

Route a resource to a controller.

Parameters

string $name
string $controller
array $options

Return Value

PendingResourceRegistration

at line 56
Registrar group(array $attributes, Closure|array|string $routes)

Create a route group with shared attributes.

Parameters

array $attributes
Closure|array|string $routes

Return Value

Registrar

at line 61
Route substituteBindings(Route $route)

Substitute the route bindings onto the route.

Parameters

Route $route

Return Value

Route

at line 66
mixed substituteImplicitBindings(Route $route)

Substitute the implicit Eloquent model bindings for the route.

Parameters

Route $route

Return Value

mixed