funcion/pedido-ollas #47
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ class GrupoDeCompra extends Model
|
|||
return $this->hasMany(Subpedido::class);
|
||||
}
|
||||
|
||||
public function users(): HasMany
|
||||
{
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
|
||||
public function toggleDevoluciones(): bool
|
||||
{
|
||||
$this->devoluciones_habilitadas = !$this->devoluciones_habilitadas;
|
||||
|
|
Loading…
Add table
Reference in a new issue