Skip to content

Releases: multicaret/laravel-acquaintances

v3.4.5

Choose a tag to compare

@mkwsra mkwsra released this 18 Mar 14:06
b248667

Thanks to @jaulz

  • fix: use a custom model for downvotes
  • fix: read pivot id

v3.4.4

Choose a tag to compare

@mkwsra mkwsra released this 17 Mar 11:39
155ec93

Thanks to @RJFares

  • fix: in interaction table add update_at timestamp column

v3.4.3

Choose a tag to compare

@mkwsra mkwsra released this 16 Mar 16:47
ae0758f

Thanks to @jaulz

  • 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

v3.4.2

Choose a tag to compare

@mkwsra mkwsra released this 16 Mar 07:05
f5a767f

Thanks to @jaulz

  • 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

v3.4.1

Choose a tag to compare

@mkwsra mkwsra released this 13 Mar 20:31
0f0d472

Thanks to @jaulz

  • 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

v3.4.0

Choose a tag to compare

@mkwsra mkwsra released this 25 Oct 10:58
  • Fixed CanVote by replacing str_plural with Str::plural.

v3.3.1

Choose a tag to compare

@mkwsra mkwsra released this 09 May 14:42
  • Added ratings() & ratingsPure() to CanBeRated model
  • Added user model name to configs user_model_class_name
  • Added user relation to InteractionRelation model

v3.3.0

Choose a tag to compare

@mkwsra mkwsra released this 08 May 20:40

Minor fix:

  • Fixed the logic of allTypes post-fixed functions

v3.2.0

v3.2.0 Pre-release
Pre-release

Choose a tag to compare

@mkwsra mkwsra released this 08 May 00:57

v3.2.0

  • Removed avoiding querying ratings when the type is set to overall

  • Fixed the value of userSumRatingReadable() function in CanBeRated trait.

  • Fixed userSumRatingReadable() function in CanBeRated 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

v3.1.0

Choose a tag to compare

@mkwsra mkwsra released this 22 Apr 22:25

made the user_id FK type dynamic and part of configurations