Upgrade framework
This commit is contained in:
19
vendor/spatie/flare-client-php/src/FlareMiddleware/RemoveRequestIp.php
vendored
Normal file
19
vendor/spatie/flare-client-php/src/FlareMiddleware/RemoveRequestIp.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\FlareClient\FlareMiddleware;
|
||||
|
||||
use Spatie\FlareClient\Report;
|
||||
|
||||
class RemoveRequestIp implements FlareMiddleware
|
||||
{
|
||||
public function handle(Report $report, $next)
|
||||
{
|
||||
$context = $report->allContext();
|
||||
|
||||
$context['request']['ip'] = null;
|
||||
|
||||
$report->userProvidedContext($context);
|
||||
|
||||
return $next($report);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user