Closed Lelectrolux closed 6 years ago
With this change, checkFollowing allows you to pass a User model or an id.
checkFollowing
The checkFollowingAny method does the same for an array of id or a collection of models or ids.
checkFollowingAny
But don't pass a collection of something else than users...
You could add a check to verify the values of the collection, but i don't find it worth. Just don't be an idiot and pass some unrelated models..
With this change,
checkFollowing
allows you to pass a User model or an id.The
checkFollowingAny
method does the same for an array of id or a collection of models or ids.But don't pass a collection of something else than users...
You could add a check to verify the values of the collection, but i don't find it worth. Just don't be an idiot and pass some unrelated models..