- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
26 lines
583 B
PHP
26 lines
583 B
PHP
<?php
|
|
|
|
namespace Spatie\LaravelIgnition\FlareMiddleware;
|
|
|
|
use Closure;
|
|
use Spatie\FlareClient\FlareMiddleware\FlareMiddleware;
|
|
use Spatie\FlareClient\Report;
|
|
use Spatie\LaravelIgnition\Recorders\DumpRecorder\DumpRecorder;
|
|
|
|
class AddDumps implements FlareMiddleware
|
|
{
|
|
protected DumpRecorder $dumpRecorder;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->dumpRecorder = app(DumpRecorder::class);
|
|
}
|
|
|
|
public function handle(Report $report, Closure $next)
|
|
{
|
|
$report->group('dumps', $this->dumpRecorder->getDumps());
|
|
|
|
return $next($report);
|
|
}
|
|
}
|