void get(string $uri, Closure|array|string $action = null) Register a new GET route with the router. Parameters string $uri Closure|array|string $action Return Value void
array gatherRouteMiddleware(Route $route) Gather the middleware for the given route. Parameters Route $route Return Value array
mixed dispatchToRoute(Request $request) Dispatch the request to a route and return the response. Parameters Request $request Return Value mixed
Response dispatch(Request $request) Dispatch the request to the application. Parameters Request $request Return Value Response
void delete(string $uri, Closure|array|string $action = null) Register a new DELETE route with the router. Parameters string $uri Closure|array|string $action Return Value void
bool currentRouteUses(string $action) Determine if the current route action matches a given action. Parameters string $action Return Value bool
bool currentRouteNamed(string $name) Determine if the current route matches a given name. Parameters string $name Return Value bool
string|null currentRouteName() Get the current route name. Return Value string|null
string|null currentRouteAction() Get the current route action. Return Value string|null
Route current() Get the currently dispatched route instance. Return Value Route
Page 210 of 996