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_ENV=local
APP_KEY= APP_KEY=
APP_DEBUG=true APP_DEBUG=true

View File

@ -10,5 +10,9 @@ class GrupoDeCompra extends Model
protected $fillable = [ "nombre","region","telefono","correo","referente_finanzas","cantidad_de_nucleos"]; protected $fillable = [ "nombre","region","telefono","correo","referente_finanzas","cantidad_de_nucleos"];
protected $table = 'grupos_de_compra'; protected $table = 'grupos_de_compra';
protected $hidden = ['password']; 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> <title>{{ session("subpedido_nombre") ? "Pedido de " . session("subpedido_nombre") . " - " . config('app.name', 'Compras del MPS') : config('app.name', 'Compras del MPS')}}</title>
<!-- Scripts -->
<!-- Fonts --> <!-- Fonts -->
<!-- Styles --> <!-- Styles -->
@ -43,6 +41,7 @@
@yield('content') @yield('content')
</main> </main>
</div> </div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="{{ asset('js/app.js') }}" defer></script> <script src="{{ asset('js/app.js') }}" defer></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>