From 8d3f686fa1f8229ba7aba52c1c53a98a46dc49a2 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Wed, 5 Jul 2023 23:08:06 -0300 Subject: [PATCH] Crear view 'pedidos_aprobados' en migraciones --- .../CrearPedidosAprobadosViewCommand.php | 62 +++++++++++++++++++ app/Http/Controllers/Api/PedidoController.php | 31 ---------- ...06_015926_call_crear_pedidos_aprobados.php | 28 +++++++++ routes/api.php | 4 -- 4 files changed, 90 insertions(+), 35 deletions(-) create mode 100644 app/Console/Commands/CrearPedidosAprobadosViewCommand.php create mode 100644 database/migrations/2023_07_06_015926_call_crear_pedidos_aprobados.php diff --git a/app/Console/Commands/CrearPedidosAprobadosViewCommand.php b/app/Console/Commands/CrearPedidosAprobadosViewCommand.php new file mode 100644 index 0000000..d4b08ac --- /dev/null +++ b/app/Console/Commands/CrearPedidosAprobadosViewCommand.php @@ -0,0 +1,62 @@ +group(function () { }); }); - Route::prefix('pedidos')->group(function () { - Route::get('/generar_tablas','Api\PedidoController@generarTablas'); - }); - Route::prefix('subpedidos')->group(function () { Route::get('/','Api\SubpedidoController@index'); Route::get('/resources', 'Api\SubpedidoController@indexResources');