interface Registrar

Methods

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

Register a new GET route with the router.

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

Register a new POST route with the router.

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

Register a new PUT route with the router.

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

Register a new DELETE route with the router.

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

Register a new PATCH route with the router.

options(string $uri, Closure|array|string $action)

Register a new OPTIONS route with the router.

match(array|string $methods, string $uri, Closure|array|string $action)

Register a new route with the given verbs.

void
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.

substituteBindings(Route $route)

Substitute the route bindings onto the route.

void
substituteImplicitBindings(Route $route)

Substitute the implicit Eloquent model bindings for the route.

Details

at line 14
Route get(string $uri, Closure|array|string $action)

Register a new GET route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 23
Route post(string $uri, Closure|array|string $action)

Register a new POST route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 32
Route put(string $uri, Closure|array|string $action)

Register a new PUT route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 41
Route delete(string $uri, Closure|array|string $action)

Register a new DELETE route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 50
Route patch(string $uri, Closure|array|string $action)

Register a new PATCH route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 59
Route options(string $uri, Closure|array|string $action)

Register a new OPTIONS route with the router.

Parameters

string $uri
Closure|array|string $action

Return Value

Route

at line 69
Route match(array|string $methods, string $uri, Closure|array|string $action)

Register a new route with the given verbs.

Parameters

array|string $methods
string $uri
Closure|array|string $action

Return Value

Route

at line 79
void resource(string $name, string $controller, array $options = [])

Route a resource to a controller.

Parameters

string $name
string $controller
array $options

Return Value

void

at line 88
void group(array $attributes, Closure|string $routes)

Create a route group with shared attributes.

Parameters

array $attributes
Closure|string $routes

Return Value

void

at line 96
Route substituteBindings(Route $route)

Substitute the route bindings onto the route.

Parameters

Route $route

Return Value

Route

at line 104
void substituteImplicitBindings(Route $route)

Substitute the implicit Eloquent model bindings for the route.

Parameters

Route $route

Return Value

void