From 2faea3b0079a0b892ca8986e358332fd2fc74972 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 15 May 2025 01:13:09 -0300 Subject: [PATCH] Modelos simplificados --- app/GrupoDeCompra.php | 4 +--- app/Subpedido.php | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/GrupoDeCompra.php b/app/GrupoDeCompra.php index 3a0fe18..c744346 100644 --- a/app/GrupoDeCompra.php +++ b/app/GrupoDeCompra.php @@ -14,10 +14,8 @@ use Illuminate\Support\Facades\Log; class GrupoDeCompra extends Model { - public $timestamps = false; - protected $fillable = ["nombre", "region", "telefono", "correo", "referente_finanzas", "cantidad_de_nucleos", "fila", "devoluciones_habilitadas"]; + protected $fillable = ["nombre", "region", "devoluciones_habilitadas"]; protected $table = 'grupos_de_compra'; - protected $hidden = ['password']; public function subpedidos(): HasMany { diff --git a/app/Subpedido.php b/app/Subpedido.php index 0370020..a0c6b5c 100644 --- a/app/Subpedido.php +++ b/app/Subpedido.php @@ -12,7 +12,6 @@ use App\Filtros\FiltroDeSubpedido; class Subpedido extends Model { - public $timestamps = false; protected $fillable = ['grupo_de_compra_id', 'aprobado', 'nombre', 'devoluciones_total', 'devoluciones_notas']; public function productos(): BelongsToMany