Agregamos relacion de grupo de compra a subpedidos. Y otros detalles intrascendentes

This commit is contained in:
nat 2022-02-22 10:45:16 -03:00
parent 3e02da6a4b
commit 6b9aa7a995
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
APP_NAME="Backend de Pedidos MPS"
APP_NAME="Pedidos MPS"
APP_ENV=local
APP_KEY=
APP_DEBUG=true

View File

@ -11,4 +11,8 @@ class GrupoDeCompra extends Model
protected $table = 'grupos_de_compra';
protected $hidden = ['password'];
public function subpedidos() {
return $this->hasMany('App\Subpedido');
}
}

View File

@ -9,8 +9,6 @@
<title>{{ session("subpedido_nombre") ? "Pedido de " . session("subpedido_nombre") . " - " . config('app.name', 'Compras del MPS') : config('app.name', 'Compras del MPS')}}</title>
<!-- Scripts -->
<!-- Fonts -->
<!-- Styles -->
@ -43,6 +41,7 @@
@yield('content')
</main>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="{{ asset('js/app.js') }}" defer></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>