interface ControllerDispatcher (View source)

Methods

mixed
dispatch(Route $route, mixed $controller, string $method)

Dispatch a request to a given controller and method.

array
getMiddleware(Controller $controller, string $method)

Get the middleware for the controller instance.

Details

mixed dispatch(Route $route, mixed $controller, string $method)

Dispatch a request to a given controller and method.

Parameters

Route $route
mixed $controller
string $method

Return Value

mixed

array getMiddleware(Controller $controller, string $method)

Get the middleware for the controller instance.

Parameters

Controller $controller
string $method

Return Value

array

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.