F
Filament14mo ago
Quin.

Get only the first on a column

Ello! I wanted to get the payment_date but the latest so that is in this case 2023-10-16 anyone can help me with that?
No description
1 Reply
ConnorHowell
ConnorHowell14mo ago
Personally I'd setup a HasManyThrough on the UserDividend model for stockDividend. Then just use a max on the payment_date via that relation? https://filamentphp.com/docs/3.x/tables/columns/relationships#aggregating-relationships
Want results from more Discord servers?
Add your server