Sum latest HasThroughMany
How can I sum the
latestPatientProtcols.hours
within a DoctorResource
?
Doctor -> hasMany
Patient -> hasMany
-> PatientProtocol
Solution:Jump to solution
Figured it out but, filament now completely ignores the subquery and returns the sum of all protocols....
Seems like a bug
```php
public function latestPatientProtocols(): HasManyThrough...
1 Reply
Solution
Figured it out but, filament now completely ignores the subquery and returns the sum of all protocols....
Seems like a bug