protected function scopes($scopes, array $options = [])
    {
        $scopes = $this->getPropertyValue($scopes);

        $this->scopes[] = \compact('scopes', 'options');
    }
protected function scopes($scopes, array $options = [])
    {
        $scopes = $this->getPropertyValue($scopes);

        $this->scopes[] = \compact('scopes', 'options');
    }
protected function scopes ( $ scopes , array $ options = [ ] ) { $ scopes = $ this -> getPropertyValue ( $ scopes ) ; $ this -> scopes [ ] = \ compact ( 'scopes' , 'options' ) ; }
Add scopes to controller methods.

@param string|array $scopes
@param array        $options

@return void
Add scopes to controller methods .