Cambio nombre
This commit is contained in:
parent
09fce4e96a
commit
8649ff5bbd
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class OllasController extends Controller
|
||||||
{
|
{
|
||||||
$tipoOlla = TipoPedido::firstOrCreate(['nombre' => 'olla']);
|
$tipoOlla = TipoPedido::firstOrCreate(['nombre' => 'olla']);
|
||||||
$pedido = $gdc->subpedidos()->firstOrCreate([
|
$pedido = $gdc->subpedidos()->firstOrCreate([
|
||||||
'nombre' => 'Pedido de Olla de ' . $gdc->nombre,
|
'nombre' => 'Pedido de Ollas de ' . $gdc->nombre,
|
||||||
'tipo_pedido_id' => $tipoOlla->id,
|
'tipo_pedido_id' => $tipoOlla->id,
|
||||||
]);
|
]);
|
||||||
return response()->json(new SubpedidoResource($pedido));
|
return response()->json(new SubpedidoResource($pedido));
|
||||||
|
|
Loading…
Add table
Reference in a new issue