ControllerMiddlewareOptions
class ControllerMiddlewareOptions (View source)
Properties
| protected array | $options | The middleware options. |
Methods
void
__construct(array $options)
Create a new middleware option instance.
$this
only(array|string|mixed $methods)
Set the controller methods the middleware should apply to.
$this
except(array|string|mixed $methods)
Set the controller methods the middleware should exclude.
Details
void
__construct(array $options)
Create a new middleware option instance.
$this
only(array|string|mixed $methods)
Set the controller methods the middleware should apply to.
$this
except(array|string|mixed $methods)
Set the controller methods the middleware should exclude.
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.