Modelos simplificados
This commit is contained in:
parent
50d77b0108
commit
2faea3b007
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue