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?
1 Reply
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