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))),