diff --git a/app/Http/Controllers/Staff/StudiesController.php b/app/Http/Controllers/Staff/StudiesController.php index db6da22..ab98e1d 100644 --- a/app/Http/Controllers/Staff/StudiesController.php +++ b/app/Http/Controllers/Staff/StudiesController.php @@ -26,6 +26,12 @@ public function show() { $this->decodeKeys(); $study = Study::with(['details'])->findOrFail($this->key); + + audit() + ->did(Activity::Study_Metadata_View) + ->on($study) + ->log(); + $fmtD = 'M d, Y'; // $fmtDT = 'M d, Y h:i A D'; $fmtDT = 'F j, Y h:i A (l)';