interface HasMiddleware (View source)

Methods

static Middleware|Closure|string>
middleware()

Get the middleware that should be assigned to the controller.

Details

static Middleware|Closure|string> middleware()

Get the middleware that should be assigned to the controller.

Return Value

Middleware|Closure|string>

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.