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', [