src/Database/Scope/Scope.php
public function getAttachAttributes($authority = null)
    {
        if (is_null($this->scope)) {
            return [];
        }

        if (! $this->scopeRoleAbilities && $this->isRoleClass($authority)) {
            return [];
        }

        return ['scope' => $this->scope];
    }
public function getAttachAttributes($authority = null)
    {
        if (is_null($this->scope)) {
            return [];
        }

        if (! $this->scopeRoleAbilities && $this->isRoleClass($authority)) {
            return [];
        }

        return ['scope' => $this->scope];
    }
public function getAttachAttributes ( $ authority = null ) { if ( is_null ( $ this -> scope ) ) { return [ ] ; } if ( ! $ this -> scopeRoleAbilities && $ this -> isRoleClass ( $ authority ) ) { return [ ] ; } return [ 'scope' => $ this -> scope ] ; }
Get the additional attributes for pivot table records.

@param  string|null  $authority
@return array
Get the additional attributes for pivot table records .