From 5a43dbd3d464094f9073e0ec3721329d6e35bfb3 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 30 Apr 2024 10:58:01 -0500 Subject: [PATCH] fix renovacion --- app/Http/Livewire/ShowPlanes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 9d84006..e3be8b6 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -277,7 +277,7 @@ class ShowPlanes extends Component { $id = $this->id_cuentaVer; - $historial = Historial_cuenta::where('cuenta_id', $id)->get(); + $historial = Historial_cuenta::where('cuenta_id', $id)->first(); Historiale::where('id', $historial->historiale_id)->update([ 'fecha_final' => date('Y-m-d', strtotime(strval($this->fecha_final_renovar))),