Summarize Table RelationManager
I am attempting to use the
summarize
feature from Filament on a table that exists in RelationManager
. However, I encounter an error:
When I remove $table->id()
in create_package_product_table.php
, the error changes to:
If I remove $table->timestamps()
in create_package_product_table.php
, the summarize feature can be used. How can I use summarize
on a table in RelationManager
without having to remove $table->id()
and $table->timestamps()
?2 Replies
Code:
- Pivot table:
create_package_product_table.php
- Model Package.php
- Model Product.php
- ProductResource.php
- ProductRelationManager.php
in PackageResource.php
@Kaesa Lyrih did you ever figure this out?
looks like you just have to set your own logic on using() to do it. Like so: