class Illuminate / Routing / ControllerMiddlewareOptions
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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|dynamic
public

except ( $methods ) : $this

Set the controller methods the middleware should exclude.

Parameters

  • $methods array|string|dynamic