We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2017afc commit 321b95cCopy full SHA for 321b95c
src/Tracing/SessionCollector.php
@@ -2,6 +2,7 @@
2
3
namespace Naoray\LaravelGithubMonolog\Tracing;
4
5
+use Illuminate\Support\Arr;
6
use Illuminate\Support\Facades\Context;
7
use Illuminate\Support\Facades\Session;
8
use Naoray\LaravelGithubMonolog\Tracing\Concerns\RedactsData;
@@ -27,9 +28,7 @@ public function collect(): void
27
28
return;
29
}
30
- $data = collect(Session::all())
31
- ->except(['_token', '_flash'])
32
- ->toArray();
+ $data = Arr::except(Session::all(), ['_token', '_flash']);
33
34
$session = [
35
'data' => $this->redactPayload($data),
0 commit comments