Skip to content

Atributos

Bruno Barreto edited this page May 15, 2017 · 3 revisions

Inserir atributo

$retorno = $skyhub->attributes()->insert($id, $label, $opts);

Exemplo:

$retorno = $skyhub->attributes()->insert('color', 'Cor', [
    'Verde', 'Vermelho', 'Azul'
]);

Atualizar atributo

$retorno = $skyhub->attributes($id)->update($label, $opts);

Exemplo:

$retorno = $skyhub->attributes('color')->update('Cor do móvel', [
    'Preto', 'Branco', 'Verde', 'Vermelho', 'Azul'
]);
Clone this wiki locally