src/Routing/Route.php
protected function optionsApplyToControllerMethod(array $options)
    {
        if (empty($options)) {
            return true;
        } elseif (isset($options['only']) && in_array($this->controllerMethod,
                $this->explodeOnPipes($options['only']))) {
            return true;
        } elseif (isset($options['except'])) {
            return ! in_array($this->controllerMethod, $this->explodeOnPipes($options['except']));
        } elseif (in_array($this->controllerMethod, $this->explodeOnPipes($options))) {
            return true;
        }

        return false;
    }
protected function optionsApplyToControllerMethod(array $options)
    {
        if (empty($options)) {
            return true;
        } elseif (isset($options['only']) && in_array($this->controllerMethod,
                $this->explodeOnPipes($options['only']))) {
            return true;
        } elseif (isset($options['except'])) {
            return ! in_array($this->controllerMethod, $this->explodeOnPipes($options['except']));
        } elseif (in_array($this->controllerMethod, $this->explodeOnPipes($options))) {
            return true;
        }

        return false;
    }
protected function optionsApplyToControllerMethod ( array $ options ) { if ( empty ( $ options ) ) { return true ; } elseif ( isset ( $ options [ 'only' ] ) && in_array ( $ this -> controllerMethod , $ this -> explodeOnPipes ( $ options [ 'only' ] ) ) ) { return true ; } elseif ( isset ( $ options [ 'except' ] ) ) { return ! in_array ( $ this -> controllerMethod , $ this -> explodeOnPipes ( $ options [ 'except' ] ) ) ; } elseif ( in_array ( $ this -> controllerMethod , $ this -> explodeOnPipes ( $ options ) ) ) { return true ; } return false ; }
Determine if a controller method is in an array of options.

@param array $options

@return bool
Determine if a controller method is in an array of options .