<?php
namespace Spatie\FlareClient\FlareMiddleware;
use Closure;
use Spatie\FlareClient\Report;
class AddEnvironmentInformation implements FlareMiddleware
{
public function handle(Report $report, Closure $next)
{
$report->group('env', [
'php_version' => phpversion(),
]);
return $next($report);
}
}
For code examples and implementation guides, please refer to the “Examples” section on our developer portal. Go to GitHub Repository