- use config variable
interactions_user_id_fk_column_name
PR #109
- Bump Laravel support to V11.
- feat: adding a way to get a list of blocked Friendships by current user by @mercExec
- feat: adding a way to get a list of blocked Friendships by others by @mercExec
- feat: adding get pending count function by @prawn185
- fix: solve isRelationExists causing potential ambiguous errors when doing some complex DB queries. by @midblep
- Laravel 10 Support - composer-wise not fully support, and no PHP 8.1 types or anything fancy here
- fix: findFriendships with params
sender
&recipient
were not working, fixed by @beratkara
- feat: add cursor paginate support to
getFriends
andgetOrPaginate
- fix: make interaction relation_value type a double, better for rating values.
- fix: rating a non-custom type (AKA
config('acquaintances.rating.defaults.type')
) just after a custom type rating, will leave to an odd behavior
- feat: allow user to turn off migrations, thanks to @jaulz
- fix: deprecated method studly_case() PR #53, thanks to @Forsakenrox
- fix: Trait helper method morph key of 'ratingsTo'.
- fix: rename collision method name 'ratings' to 'ratingsTo'
- feat: change the naming of migration files to be prefixed with the current time.
- fix: friendship_id column type
- fix: use custom model for downvotes
- fix: read pivot id
- fix: in interaction table add update_at timestamp column
- feat: allow empty model namespace
- fix: add helper methods for all models
- feat: allow all models to be configured
- fix: use models from config
- fix: set default user model to User
- along with other fixes
- feat: add view relation
- feat: add CanBeViewed trait
- feat: add CanView trait
- docs: extend readme
- docs: add missing events
- fix: fix typo
- feat: extend relation map
- fix: add option for custom column name
- feat: add helper method to get user model name
- fix: use helper method to get user model name
- fix: remove obsolete imports
- fix: add Str import
- fix: fix comments in config
- fix: use helper method to get user model name
- fix: use new helper method to get user model name
- fix: use new helper method get user model name
- fix: use new helper method get user model name
- fix: use new helper method get user model name
- fix: use new helper method get user model name
- minor fix. Replaced
str_plural
withStr::plural
.
- Added
ratings()
&ratingsPure()
to CanBeRated model - Added user model name to configs
user_model_class_name
- Added user relation to InteractionRelation model
- Fixed the logic of allTypes post-fixed functions.
-
Removed avoiding querying ratings when the type is set to overall
-
Fixed the value of
userSumRatingReadable()
function in CanBeRated trait. -
Fixed
userSumRatingReadable()
function inCanBeRated
trait. -
Add new functions to
CanBeRated
trait:- averageRatingAllTypes()
- sumRatingAllTypes()
- sumRatingAllTypesReadable()
- userAverageRatingAllTypes()
- userSumRatingAllTypes()
- userSumRatingAllTypesReadable()
- ratingPercentAllTypes()
- getAverageRatingAllTypesAttribute()
- getSumRatingAllTypesAttribute()
- getUserAverageRatingAllTypesAttribute()
- getUserSumRatingAllTypesAttribute()
-
Added a proper param type hint for the $target param in the following traits
- CanBeFavorited
- CanBeFollowed
- CanBeLiked
- CanBeRated
- CanBeSubscribed
- CanBeVoted
- CanFavorite
- CanFollow
- CanLike
- CanRate
- CanSubscribe
- CanVote
- Made the
user_id
FK type dynamic and part of configurations
- Changed the package's company - since I renamed my brand
- PHP 7.1 is the minimum requirement now
- Supporting Laravel 5.8 by replacing
Event::fire
withEvent::dispatch
- Fixing an issue with foreign key constraint when running migrations
- Adding rating system feature
- Remote soft deletion and updated_at timestamp
- Adding
numberToReadable()
function to as helper - Enhance logic by adding more columns
- Adding
CanBeFavorited
trait now includes:favoriters_count
favoriters countfavoritersCountReadable()
return favoriters count in readable formatfavoriters_count_readable
favoriters count readable attribute added
- Adding
CanBeFollowed
trait now includes:followers_count
followers countfollowersCountReadable()
return followers count in readable formatfollowers_count_readable
followers count readable attribute added
- Adding
CanBeLiked
trait now includes:likers_count
likers countlikersCountFormmated()
changed return type to readable number, and adding an alias to itlikersCountReadable()
likers_count_readable
likers count readable attribute added
- Adding
CanBeSubscribed
trait now includes:subscribers_count
subscribers countsubscribersCountReadable()
return subscribers count in readable formatsubscribers_count_readable
subscribers count readable attribute added
- Adding
CanBeSubscribed
trait now includes:voters_count
voters countvotersCountReadable()
return voters count in readable formatvoters_count_readable
voters count readable attribute added
- Adding
CanBeSubscribed
trait now includes:upvoters_count
upvoters countupvotersCountReadable()
return upvoters count in readable formatupvoters_count_readable
upvoters count readable attribute added
- Adding
CanBeSubscribed
trait now includes:downvoters_count
downvoters countdownvotersCountReadable()
return downvoters count in readable formatdownvoters_count_readable
downvoters count readable attribute added
- Fix errors
- Enhance logic
- Smart/less configurations
- Minor change in the name of migrations files
- Initial Release