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::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

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

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

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

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

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::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