Router::put()

void put(string $uri, Closure|array|string $action = null) Register a new PUT route with the router. Parameters string $uri Closure|array|string $action 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::prepareResponse()

Response prepareResponse(Request $request, mixed $response) Create a response instance from the given value. Parameters Request $request mixed $response Return Value Response

Router::patterns()

void patterns(array $patterns) Set a group of global where patterns on all routes. Parameters array $patterns Return Value void

Router::pattern()

void pattern(string $key, string $pattern) Set a global where pattern on all routes. Parameters string $key string $pattern Return Value void

Router::post()

void post(string $uri, Closure|array|string $action = null) Register a new POST route with the router. Parameters string $uri Closure|array|string $action Return Value void

Router::prependMiddlewareToGroup()

$this prependMiddlewareToGroup(string $group, string $middleware) Add a middleware to the beginning 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

Router::options()

void options(string $uri, Closure|array|string $action = null) Register a new OPTIONS route with the router. Parameters string $uri Closure|array|string $action Return Value void

Router::middlewareGroup()

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

Router::model()

void model(string $key, string $class, Closure $callback = null) Register a model binder for a wildcard. Parameters string $key string $class Closure $callback Return Value void Exceptions ModelNotFoundException