PATH:
home
/
lab2454c
/
omvstudio.com
/
vendor
/
spatie
/
flare-client-php
/
src
/
FlareMiddleware
<?php namespace Spatie\FlareClient\FlareMiddleware; use Spatie\FlareClient\Report; class CensorRequestBodyFields implements FlareMiddleware { protected array $fieldNames = []; public function __construct(array $fieldNames) { $this->fieldNames = $fieldNames; } public function handle(Report $report, $next) { $context = $report->allContext(); foreach ($this->fieldNames as $fieldName) { if (isset($context['request_data']['body'][$fieldName])) { $context['request_data']['body'][$fieldName] = '<CENSORED>'; } } $report->userProvidedContext($context); return $next($report); } }
[-] CensorRequestBodyFields.php
[edit]
[-] RemoveRequestIp.php
[edit]
[+]
..
[-] AddDocumentationLinks.php
[edit]
[-] FlareMiddleware.php
[edit]
[-] AddGlows.php
[edit]
[-] AddSolutions.php
[edit]
[-] AddNotifierName.php
[edit]
[-] AddGitInformation.php
[edit]
[-] AddEnvironmentInformation.php
[edit]
[-] CensorRequestHeaders.php
[edit]