src/Database/Concerns/IsAbility.php
final public function getIdentifierAttribute()
    {
        $slug = $this->attributes['name'];

        if ($this->attributes['entity_type']) {
            $slug .= '-'.$this->attributes['entity_type'];
        }

        if ($this->attributes['entity_id']) {
            $slug .= '-'.$this->attributes['entity_id'];
        }

        if ($this->attributes['only_owned']) {
            $slug .= '-owned';
        }

        return strtolower($slug);
    }
final public function getIdentifierAttribute()
    {
        $slug = $this->attributes['name'];

        if ($this->attributes['entity_type']) {
            $slug .= '-'.$this->attributes['entity_type'];
        }

        if ($this->attributes['entity_id']) {
            $slug .= '-'.$this->attributes['entity_id'];
        }

        if ($this->attributes['only_owned']) {
            $slug .= '-owned';
        }

        return strtolower($slug);
    }
final public function getIdentifierAttribute ( ) { $ slug = $ this -> attributes [ 'name' ] ; if ( $ this -> attributes [ 'entity_type' ] ) { $ slug .= '-' . $ this -> attributes [ 'entity_type' ] ; } if ( $ this -> attributes [ 'entity_id' ] ) { $ slug .= '-' . $ this -> attributes [ 'entity_id' ] ; } if ( $ this -> attributes [ 'only_owned' ] ) { $ slug .= '-owned' ; } return strtolower ( $ slug ) ; }
Get the identifier for this ability.

@return string
Get the identifier for this ability .