Fix Summarizer Issue with BelongsToMany Pivot Fields (#19625)

* Allow Summarizer on BelongsToMany pivot columns

* Allow fields that begin with "pivot."

* Fix PHPStan error

* PHPStan fixes

* Add tests

* cleanup and fix edge cases

* Update Summarizer.php

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
This commit is contained in:
Craig Anderson
2026-04-03 15:26:08 +01:00
committed by GitHub
co-authored by Dan Harrin
parent 71ebff1c3e
commit 669ae00934
7 changed files with 150 additions and 10 deletions
@@ -12,6 +12,8 @@ return new class extends Migration
$table->id();
$table->unsignedBigInteger('department_id');
$table->unsignedBigInteger('ticket_id');
$table->unsignedInteger('quantity')->default(1);
$table->unsignedInteger('price')->default(0);
$table->timestamps();
});
}