Router::dispatchToRoute()

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

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::dispatch()

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

Router::currentRouteName()

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

Router::currentRouteUses()

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

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::currentRouteNamed()

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

Router::createClassBinding()

Closure createClassBinding(string $binding) Create a class based binding using the IoC container. Parameters string $binding Return Value Closure

Router::auth()

void auth() Register the typical authentication routes for an application. Return Value void