laravel / 10 / api / 10.x / illuminate / routing / controllers / hasmiddleware.html

HasMiddleware

interface HasMiddleware (View source)

Methods

static Middleware|array middleware()

Get the middleware that should be assigned to the controller.

Details

static Middleware|array middleware()

Get the middleware that should be assigned to the controller.

Return Value

Middleware|array

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