Accessing pivot model relationships in relationship manager
To give what seems like a hacky answer to my own question, I am just manually getting the relationship data I need with something like this on the relationship manager table:
Conditionally modify query based on column visibility
Thanks @K R A T O S , I think I've got that part. What I'm unsure of is how to do that based on the visibility of a column. What I feel like I'm looking for is doing something like this when defining whether the column can be toggled
->toggleable(true, true, query: function (Builder $query): Builder {
return $query->withSum(...);}),
->toggleable(true, true, query: function (Builder $query): Builder {