From 6b9aa7a995b91d9ef3a7ce60f806db07d6b08ce6 Mon Sep 17 00:00:00 2001 From: nat Date: Tue, 22 Feb 2022 10:45:16 -0300 Subject: [PATCH] Agregamos relacion de grupo de compra a subpedidos. Y otros detalles intrascendentes --- .env.example | 2 +- app/GrupoDeCompra.php | 4 ++++ resources/views/layouts/app.blade.php | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 22e3741..d13a2e3 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -APP_NAME="Backend de Pedidos MPS" +APP_NAME="Pedidos MPS" APP_ENV=local APP_KEY= APP_DEBUG=true diff --git a/app/GrupoDeCompra.php b/app/GrupoDeCompra.php index f5d80eb..8d16b8f 100644 --- a/app/GrupoDeCompra.php +++ b/app/GrupoDeCompra.php @@ -10,5 +10,9 @@ class GrupoDeCompra extends Model protected $fillable = [ "nombre","region","telefono","correo","referente_finanzas","cantidad_de_nucleos"]; protected $table = 'grupos_de_compra'; protected $hidden = ['password']; + + public function subpedidos() { + return $this->hasMany('App\Subpedido'); + } } diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index df7fd56..f5bff45 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -9,8 +9,6 @@ {{ session("subpedido_nombre") ? "Pedido de " . session("subpedido_nombre") . " - " . config('app.name', 'Compras del MPS') : config('app.name', 'Compras del MPS')}} - - @@ -43,6 +41,7 @@ @yield('content') +