Registrar
interface Registrar (View source)
Methods
void
void
void
void
resource(
string $name,
string $controller,
array $options = array())
Route a resource to a controller.
Details
at line line 16
void
get(
string $uri,
Closure|array|string $action)
Register a new GET route with the router.
at line line 25
void
post(
string $uri,
Closure|array|string $action)
Register a new POST route with the router.
at line line 34
void
put(
string $uri,
Closure|array|string $action)
Register a new PUT route with the router.
at line line 43
void
delete(
string $uri,
Closure|array|string $action)
Register a new DELETE route with the router.
at line line 52
void
patch(
string $uri,
Closure|array|string $action)
Register a new PATCH route with the router.
at line line 61
void
options(
string $uri,
Closure|array|string $action)
Register a new OPTIONS route with the router.
at line line 71
void
match(
array|string $methods,
string $uri,
Closure|array|string $action)
Register a new route with the given verbs.
at line line 81
void
resource(
string $name,
string $controller,
array $options = array())
Route a resource to a controller.