Router::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Router::uses()

bool uses() Alias for the "currentRouteUses" method. Return Value bool

Router::__call()

mixed __call(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Router::setRoutes()

void setRoutes(RouteCollection $routes) Set the route collection instance. Parameters RouteCollection $routes Return Value void

Router::resources()

void resources(array $resources) Register an array of resource controllers. Parameters array $resources Return Value void

Router::substituteBindings()

Route substituteBindings(Route $route) Substitute the route bindings onto the route. Parameters Route $route Return Value Route

Router::singularResourceParameters()

void singularResourceParameters(bool $singular = true) Set the unmapped global resource parameters to singular. Parameters bool $singular Return Value void

Router::resource()

void resource(string $name, string $controller, array $options = array()) Route a resource to a controller. Parameters string $name string $controller array $options Return Value void

Router::resolveMiddlewareClassName()

string|array resolveMiddlewareClassName(string $name) Resolve the middleware name to a class name(s) preserving passed parameters. Parameters string $name Return Value string|array

Router::pushMiddlewareToGroup()

$this pushMiddlewareToGroup(string $group, string $middleware) Add a middleware to the end of a middleware group. If the middleware is already in the group, it will not be added again. Parameters string $group string $middleware Return Value $this