Closed ghost closed 7 years ago
How would I go about extending getFriends() to include an additional attribute which says when a user became friends with another user?
I could write an additional method, but I want to avoid the N+1 query issue.
I believe that the $friendship->update_at attribute is what you are looking for.
$friendship->update_at
How would I go about extending getFriends() to include an additional attribute which says when a user became friends with another user?
I could write an additional method, but I want to avoid the N+1 query issue.