src/Support/Data/Menu/PermissionsIndexData.php
public function setForNode(array $nodeKey, array $permissions = [])
    {
        $this->attributes['index'][ $this->stringifyNodeKey($nodeKey) ] = $permissions;

        return $this;
    }
public function setForNode(array $nodeKey, array $permissions = [])
    {
        $this->attributes['index'][ $this->stringifyNodeKey($nodeKey) ] = $permissions;

        return $this;
    }
public function setForNode ( array $ nodeKey , array $ permissions = [ ] ) { $ this -> attributes [ 'index' ] [ $ this -> stringifyNodeKey ( $ nodeKey ) ] = $ permissions ; return $ this ; }
Sets permissions for a given menu layout node.

@param array    $nodeKey
@param string[] $permissions
@return $this
Sets permissions for a given menu layout node .