From 2a1835efe7d891385b2b1298fef3fddc31a246a5 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 1 May 2024 09:14:44 -0500 Subject: [PATCH] Update ShowPlanes.php --- app/Http/Livewire/ShowPlanes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 380ed52..4f43303 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -281,7 +281,8 @@ class ShowPlanes extends Component $historial = Historial_cuenta::where('cuenta_id', $id)->first(); - $consultaFechaFinal = Historiale::where('id', $historial->historiale_id)->fecha_final; + $consultaFechaFinal = Historiale::where('id', $historial->historiale_id)->first()->fecha_final; + dd($consultaFechaFinal); $nuevaFecha= $consultaFechaFinal->addDays($this->tiempo_usuario); Historiale::where('id', $historial->historiale_id)->update([