src/Traits/LaratrustPermissionTrait.php
public function getMorphByUserRelation($relationship)
    {
        return $this->morphedByMany(
            Config::get('laratrust.user_models')[$relationship],
            'user',
            Config::get('laratrust.tables.permission_user'),
            Config::get('laratrust.foreign_keys.permission'),
            Config::get('laratrust.foreign_keys.user')
        );
    }
public function getMorphByUserRelation($relationship)
    {
        return $this->morphedByMany(
            Config::get('laratrust.user_models')[$relationship],
            'user',
            Config::get('laratrust.tables.permission_user'),
            Config::get('laratrust.foreign_keys.permission'),
            Config::get('laratrust.foreign_keys.user')
        );
    }
public function getMorphByUserRelation ( $ relationship ) { return $ this -> morphedByMany ( Config :: get ( 'laratrust.user_models' ) [ $ relationship ] , 'user' , Config :: get ( 'laratrust.tables.permission_user' ) , Config :: get ( 'laratrust.foreign_keys.permission' ) , Config :: get ( 'laratrust.foreign_keys.user' ) ) ; }
Morph by Many relationship between the permission and the one of the possible user models.

@param  string  $relationship
@return \Illuminate\Database\Eloquent\Relations\MorphToMany
Morph by Many relationship between the permission and the one of the possible user models .