From 03c85495640f9946f79b466d853d5c80a2a0b531 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 27 Nov 2026 07:48:13 +0530 Subject: [PATCH] Added updated by column in reowrk logic --- app/Livewire/PanelCheckList.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Livewire/PanelCheckList.php b/app/Livewire/PanelCheckList.php index f0104c63..ec7460f9 100644 --- a/app/Livewire/PanelCheckList.php +++ b/app/Livewire/PanelCheckList.php @@ -209,6 +209,7 @@ public $records = []; } if($latestReworkRecord){ + $userName = Filament::auth()->user()?->name; $reworkCount = $latestReworkRecord ? ((int) $latestReworkRecord->rework_count + 1) @@ -217,6 +218,7 @@ public $records = []; $latestReworkRecord->update([ 'rework_count' => $reworkCount, 'status' => $this->selectForNotOk ? 'NotOk' : 'Ok', + 'updated_by' => $userName, ]); } catch (\Illuminate\Database\QueryException $e) { -- 2.49.1