martin-c91 / laratwit

1 stars 0 forks source link

Add powers to `checkFollowing`, and `checkFollowingAny` example #2

Closed Lelectrolux closed 6 years ago

Lelectrolux commented 6 years ago

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..