Router::middlewareGroup()

$this middlewareGroup(string $name, array $middleware) Register a group of middleware. Parameters string $name array $middleware Return Value $this

Router::mergeWithLastGroup()

array mergeWithLastGroup(array $new) Merge the given array with the last group stack. Parameters array $new Return Value array

Router::matched()

void matched(string|callable $callback) Register a route matched event listener. Parameters string|callable $callback Return Value void

Router::match()

void match(array|string $methods, string $uri, Closure|array|string $action = null) Register a new route with the given verbs. Parameters array|string $methods string $uri Closure|array|string $action Return Value void

Router::mergeGroup()

static array mergeGroup(array $new, array $old) Merge the given group attributes. Parameters array $new array $old Return Value array

Router::middleware()

$this middleware(string $name, string $class) Register a short-hand name for a middleware. Parameters string $name string $class Return Value $this

Router::macro()

static void macro(string $name, callable $macro) Register a custom macro. Parameters string $name callable $macro Return Value void

Router::input()

mixed input(string $key, string $default = null) Get a route parameter for the current route. Parameters string $key string $default Return Value mixed

Router::is()

bool is() Alias for the "currentRouteNamed" method. Return Value bool

Router::hasMacro()

static bool hasMacro(string $name) Checks if macro is registered. Parameters string $name Return Value bool