Modelos simplificados

This commit is contained in:
Alejandro Tasistro 2025-05-15 01:13:09 -03:00
parent 50d77b0108
commit 2faea3b007
2 changed files with 1 additions and 4 deletions

View file

@ -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
{

View file

@ -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