F
Filamentβ€’5mo ago
Oxygarum

Limit display of entries in table

Hey, I know there is probably something overly easy I am overlooking, but I can not figure it out... I have made a widget displaying a table, but now want to only show the 5 most recent records. How can this be done? I first thought about limit(), but its not working. Thanks πŸ™‚
Solution:
Figured it out. I used ->latest()->take(5) on the query...
Jump to solution
1 Reply
Solution
Oxygarum
Oxygarumβ€’5mo ago
Figured it out. I used ->latest()->take(5) on the query
Want results from more Discord servers?
Add your server