20 lines
331 B
PHP
20 lines
331 B
PHP
<?php
|
|
|
|
namespace Facade\FlareClient\Middleware;
|
|
|
|
use Facade\FlareClient\Report;
|
|
|
|
class AnonymizeIp
|
|
{
|
|
public function handle(Report $report, $next)
|
|
{
|
|
$context = $report->allContext();
|
|
|
|
$context['request']['ip'] = null;
|
|
|
|
$report->userProvidedContext($context);
|
|
|
|
return $next($report);
|
|
}
|
|
}
|