🎉
This commit is contained in:
23
vendor/spatie/laravel-ignition/src/FlareMiddleware/AddQueries.php
vendored
Normal file
23
vendor/spatie/laravel-ignition/src/FlareMiddleware/AddQueries.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\LaravelIgnition\FlareMiddleware;
|
||||
|
||||
use Spatie\FlareClient\Report;
|
||||
use Spatie\LaravelIgnition\Recorders\QueryRecorder\QueryRecorder;
|
||||
|
||||
class AddQueries
|
||||
{
|
||||
protected QueryRecorder $queryRecorder;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->queryRecorder = app(QueryRecorder::class);
|
||||
}
|
||||
|
||||
public function handle(Report $report, $next)
|
||||
{
|
||||
$report->group('queries', $this->queryRecorder->getQueries());
|
||||
|
||||
return $next($report);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user