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 π
1 Reply
Solution
Figured it out.
I used ->latest()->take(5) on the query