src/Database/Concerns/HasAbilities.php
public function abilities()
    {
        $relation = $this->morphToMany(
            Models::classname(Ability::class),
            'entity',
            Models::table('permissions')
        )->withPivot('forbidden', 'scope');

        return Models::scope()->applyToRelation($relation);
    }
public function abilities()
    {
        $relation = $this->morphToMany(
            Models::classname(Ability::class),
            'entity',
            Models::table('permissions')
        )->withPivot('forbidden', 'scope');

        return Models::scope()->applyToRelation($relation);
    }
public function abilities ( ) { $ relation = $ this -> morphToMany ( Models :: classname ( Ability :: class ) , 'entity' , Models :: table ( 'permissions' ) ) -> withPivot ( 'forbidden' , 'scope' ) ; return Models :: scope ( ) -> applyToRelation ( $ relation ) ; }
The abilities relationship.

@return \Illuminate\Database\Eloquent\Relations\MorphToMany
The abilities relationship .