diff --git a/app/Http/Controllers/Api/SubpedidoController.php b/app/Http/Controllers/Api/SubpedidoController.php index 668030d..0f7c81c 100644 --- a/app/Http/Controllers/Api/SubpedidoController.php +++ b/app/Http/Controllers/Api/SubpedidoController.php @@ -103,9 +103,9 @@ class SubpedidoController extends Controller $valid = request()->validate([ 'total' => 'required|min:0', - 'notas' => 'min:1', + 'notas' => 'min:0' ]); - $subpedido->syncDevoluciones($valid['total'], $valid['notas']); + $subpedido->syncDevoluciones($valid['total'], $valid['notas'] ?? ""); return new SubpedidoResource($subpedido); }