mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
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:
co-authored by
Dan Harrin
parent
71ebff1c3e
commit
669ae00934
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user