From cbd5ebbbbc27612b5ac186a1e347fac14c8dd4d1 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 21 Jul 2024 14:00:43 -0500 Subject: [PATCH] Update ShowServicios.php --- app/Http/Livewire/ShowServicios.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/ShowServicios.php b/app/Http/Livewire/ShowServicios.php index 9f657cd..68e7df9 100755 --- a/app/Http/Livewire/ShowServicios.php +++ b/app/Http/Livewire/ShowServicios.php @@ -231,7 +231,9 @@ class ShowServicios extends Component /* ---------------- Btn Comprar ---------------- */ public function comprar() { - $this->validate(); + $this->validate([ + 'cantidad_tarjetaPlan' => 'required|numeric|min:1', + ]); if ($this->cantidad_tarjetaPlan == 0) { $this->alert('error', 'La cantidad debe ser mayor a 0', [