class Illuminate / Routing / ControllerMiddlewareOptions
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ControllerMiddlewareOptions

Properties

protected

$options array

The middleware options.

Default: null

Methods

public

__construct ( array $options ) : void

Create a new middleware option instance.

Parameters

  • $options array
public

only ( $methods ) : $this

Set the controller methods the middleware should apply to.

Parameters

  • $methods array|string|mixed
public

except ( $methods ) : $this

Set the controller methods the middleware should exclude.

Parameters

  • $methods array|string|mixed