auth()->id(), 'action' => $action, 'description' => $description, 'subject_type' => $subject ? get_class($subject) : null, 'subject_id' => $subject?->id, 'ip_address' => request()->ip(), 'user_agent' => request()->userAgent(), ]); } catch (\Exception $e) { // Silent fail for logging } } }