Router::get()

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

Router::gatherRouteMiddleware()

array gatherRouteMiddleware(Route $route) Gather the middleware for the given route. Parameters Route $route Return Value array

Router::dispatchToRoute()

mixed dispatchToRoute(Request $request) Dispatch the request to a route and return the response. Parameters Request $request Return Value mixed

Router::dispatch()

Response dispatch(Request $request) Dispatch the request to the application. Parameters Request $request Return Value Response

Router::delete()

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

Router::currentRouteUses()

bool currentRouteUses(string $action) Determine if the current route action matches a given action. Parameters string $action Return Value bool

Router::currentRouteNamed()

bool currentRouteNamed(string $name) Determine if the current route matches a given name. Parameters string $name Return Value bool

Router::currentRouteName()

string|null currentRouteName() Get the current route name. Return Value string|null

Router::currentRouteAction()

string|null currentRouteAction() Get the current route action. Return Value string|null

Router::current()

Route current() Get the currently dispatched route instance. Return Value Route