We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6b3c99 commit b88e223Copy full SHA for b88e223
1 file changed
app/Audit/AuditEventListener.php
@@ -101,7 +101,7 @@ private function buildAuditContext(): AuditContext
101
$user = $userRepo->getById($userId);
102
}
103
104
- //$ui = app()->bound('ui.context') ? app('ui.context') : [];
+ $uiContext = []; // app()->bound('ui.context') ? app('ui.context') : [];
105
106
$req = request();
107
$rawRoute = null;
@@ -121,8 +121,8 @@ private function buildAuditContext(): AuditContext
121
userEmail: $user?->getEmail(),
122
userFirstName: $user?->getFirstName(),
123
userLastName: $user?->getLastName(),
124
- uiApp: $ui['app'] ?? null,
125
- uiFlow: $ui['flow'] ?? null,
+ uiApp: $uiContext['app'] ?? null,
+ uiFlow: $uiContext['flow'] ?? null,
126
route: $req?->path(),
127
httpMethod: $req?->method(),
128
clientIp: $req?->ip(),
0 commit comments