src/Traits/LaratrustRoleTrait.php
public function permissions()
    {
        return $this->belongsToMany(
            Config::get('laratrust.models.permission'),
            Config::get('laratrust.tables.permission_role'),
            Config::get('laratrust.foreign_keys.role'),
            Config::get('laratrust.foreign_keys.permission')
        );
    }
public function permissions()
    {
        return $this->belongsToMany(
            Config::get('laratrust.models.permission'),
            Config::get('laratrust.tables.permission_role'),
            Config::get('laratrust.foreign_keys.role'),
            Config::get('laratrust.foreign_keys.permission')
        );
    }
public function permissions ( ) { return $ this -> belongsToMany ( Config :: get ( 'laratrust.models.permission' ) , Config :: get ( 'laratrust.tables.permission_role' ) , Config :: get ( 'laratrust.foreign_keys.role' ) , Config :: get ( 'laratrust.foreign_keys.permission' ) ) ; }
Many-to-Many relations with the permission model.

@return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Many - to - Many relations with the permission model .