W3cubDocs

/Laravel 11

HasMiddleware

interface HasMiddleware (View source)

Methods

static Middleware[] middleware()

Get the middleware that should be assigned to the controller.

Details

static Middleware[] middleware()

Get the middleware that should be assigned to the controller.

Return Value

Middleware[]

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Routing/Controllers/HasMiddleware.html