FIX #14 auditing

This commit is contained in:
Dr Masroor Ehsan 2025-01-21 21:27:53 +06:00
parent 04dc9239f1
commit 064bb67ee4

View File

@ -26,6 +26,12 @@ public function show()
{ {
$this->decodeKeys(); $this->decodeKeys();
$study = Study::with(['details'])->findOrFail($this->key); $study = Study::with(['details'])->findOrFail($this->key);
audit()
->did(Activity::Study_Metadata_View)
->on($study)
->log();
$fmtD = 'M d, Y'; $fmtD = 'M d, Y';
// $fmtDT = 'M d, Y h:i A D'; // $fmtDT = 'M d, Y h:i A D';
$fmtDT = 'F j, Y h:i A (l)'; $fmtDT = 'F j, Y h:i A (l)';