Agregado has many users
This commit is contained in:
parent
8b86cddb33
commit
b61fdb1fff
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