laravel-love

Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?

MIT License

Downloads
225.9K
Stars
1.2K
Committers
11

Bot releases are visible (Hide)

laravel-love - 7.2.0

Published by antonkomarev over 5 years ago

Added

  • (#72) Default migrations loading configuration

View the changes from 7.1.0 to 7.2.0

laravel-love - 7.1.0

Published by antonkomarev over 5 years ago

Added

  • (#68) Database connection configuration

View the changes from 7.0.1 to 7.1.0

laravel-love - 7.0.1

Published by antonkomarev over 5 years ago

Changed

  • (#70) isReactedTo & isNotReactedTo methods names of Reacter facade were changed to hasReactedTo & hasNotReactedTo

View the changes from 7.0.0 to 7.0.1

laravel-love - 7.0.0

Published by antonkomarev over 5 years ago

Added

  • (#54) Reacter & Reactant facades
  • viaLoveReacter method to Reacterable trait & contract
  • viaLoveReactant method to Reactable trait & contract

Removed

  • (#67) Cog\Laravel\Love\Facades\Love global facade

View the changes from 6.2.1 to 7.0.0

laravel-love - 6.2.1

Published by antonkomarev over 5 years ago

Fixed

  • (#58) Fix --model option of love:setup-reacterable & love:setup-reactable Artisan commands

View the changes from 6.2.0 to 6.2.1

laravel-love - 6.2.0

Published by antonkomarev over 5 years ago

Added

  • (#56) love:setup-reacterable & love:setup-reactable Artisan commands were added

View the changes from 6.1.0 to 6.2.0

laravel-love - 6.1.0

Published by antonkomarev over 5 years ago

Added

  • (#51) love:reaction-type-add Artisan command was added

View the changes from 6.0.1 to 6.1.0

laravel-love - 5.2.1

Published by antonkomarev over 5 years ago

Added

  • (#48) Laravel 5.8 support

View the changes from 5.2.0 to 5.2.1

laravel-love - 6.0.1

Published by antonkomarev over 5 years ago

Removed

  • (#47) Removed duplicating indexes for foreign keys

View the changes from 6.0.0 to 6.0.1

laravel-love - 6.0.0

Published by antonkomarev over 5 years ago

Package API was refactored from a scratch.
Code has a lot of breaking changes and cannot be updated easily.

Follow upgrade instructions to migrate database to new structure.

Added

  • Laravel 5.8 support
  • ReactionType model
  • Reacter model
  • Reactant model
  • ReactionTotal model
  • ReactionHasBeenAdded event
  • ReactionHasBeenRemoved event
  • love_reacters database table was added
  • love_reactants database table was added
  • love_reaction_types database table was added
  • love_reactant_reaction_totals database table was added

Changed

  • Liker trait replaced with Reacterable
  • Likeable trait replaced with Reactable
  • LikeCounter model replaced with ReactionCounter
  • love_likes database table was replaced with love_reactions
  • love_like_counters database table was replaced with love_reactant_reaction_counters
  • ReactionCounter updates on background using queue
  • ReactionTotal updates on background using queue

Removed

  • Laravel 5.5 support obsolete
  • PHP < 7.1.3 support obsolete
  • LikeableWasLiked event was removed
  • LikeableWasDisliked event was removed
  • LikeableWasUnliked event was removed
  • LikeableWasUndisliked event was removed

View the changes from 5.2.0 to 6.0.0

laravel-love - 5.2.0

Published by antonkomarev about 6 years ago

Added

  • (#21) Laravel 5.7 support

View the changes from 5.1.1 to 5.2.0

laravel-love - 5.1.1

Published by antonkomarev over 6 years ago

Fixed

  • (#11) Added missing migrations auto-loading

View the changes from 5.1.0 to 5.1.1

laravel-love - 5.1.0

Published by antonkomarev over 6 years ago

Added

  • (#9) Laravel 5.6 support

View the changes from 5.0.0 to 5.1.0

laravel-love - 5.0.0

Published by antonkomarev almost 7 years ago

Upgrade guide from v4 to v5

Added

  • Added Cog\Contracts\Love\Liker\Models\Liker contract with methods like, dislike, unlike, undislike, toggleLike, toggleDislike, hasLiked, hasDisliked

Changed

  • Method like renamed to likeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method dislike renamed to dislikeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method unlike renamed to unlikeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method undislike renamed to undislikeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method liked renamed to likedBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method disliked renamed to dislikedBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method likeToggle renamed to toggleLikeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Method dislikeToggle renamed to toggleDislikeBy in Cog\Contracts\Love\Likeable\Models\Likeable contract

View the changes from 4.0.0 to 5.0.0

laravel-love - 4.0.0

Published by antonkomarev almost 7 years ago

Upgrade guide from v3 to v4

Changed

  • Console command LikeableRecount moved from Cog\Likeable\Console to Cog\Laravel\Love\Console\Commands namespace
  • Console command LikeableRecount renamed to Recount
  • Contracts moved from Cog\Likeable\Contracts to Cog\Contracts\Love namespace
  • Database table like renamed to love_likes
  • Database table like_counter renamed to love_like_counters
  • Database table column updated_at was added to love_likes table
  • Database table columns created_at & updated_at were added to love_like_counters table
  • Events were moved from Cog\Likeable\Events to Cog\Laravel\Love\Likeable\Events namespace
  • Event ModelWasDisliked renamed to LikeableWasDisliked
  • Event ModelWasLiked renamed to LikeableWasLiked
  • Event ModelWasUndisliked renamed to LikeableWasUndisliked
  • Event ModelWasUnliked renamed to LikeableWasUnliked
  • All Likeable's events public property $model was renamed to $likeable
  • Constant values LikeType::LIKE & LikeType::DISLIKE are uppercase now and equal to LIKE & DISLIKE respectively
  • Exceptions extends \RuntimeException instead of \Exception
  • Exception LikeTypeInvalidException moved from Cog\Likeable\Contracts\Exceptions to Cog\Contracts\Love\Like\Exceptions
  • Exception LikeTypeInvalidException renamed to InvalidLikeType
  • Exception LikerNotDefinedException moved from Cog\Likeable\Contracts\Exceptions to Cog\Contracts\Love\Liker\Exceptions
  • Exception LikerNotDefinedException renamed to InvalidLiker
  • Exception ModelInvalidException moved from Cog\Likeable\Contracts\Exceptions to Cog\Contracts\Love\Likeable\Exceptions
  • Exception ModelInvalidException renamed to InvalidLikeable
  • Observer class ModelObserver moved from Cog\Likeable\Observers to Cog\Laravel\Love\Likeable\Observers namespace
  • Observer class ModelObserver renamed to LikeableObserver
  • Service Provider LikableServiceProvider was moved from Cog\Likeable\Providers to Cog\Laravel\Love\Providers namespace
  • Service Provider LikableServiceProvider was renamed to LoveServiceProvider

Removed

  • Removed deprecated Cog\Likeable\Contracts\HasLikes contract
  • Removed deprecated Cog\Likeable\Traits\HasLikes trait
  • Removed scopeWhereLikedBy method from Cog\Contracts\Love\Likeable\Services\LikeableService contract
  • Removed scopeWhereLikedBy method from Cog\Laravel\Love\Likeable\Services\LikeableService class
  • Removed scopeOrderByLikesCount method from Cog\Contracts\Love\Likeable\Services\LikeableService contract
  • Removed scopeOrderByLikesCount method from Cog\Laravel\Love\Likeable\Services\LikeableService class
  • Removed getLikesCountAttribute method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed getDislikesCountAttribute method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed getLikedAttribute method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed getDislikedAttribute method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed getLikesDiffDislikesCountAttribute method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed scopeWhereLikedBy method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed scopeWhereDislikedBy method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed scopeOrderByLikesCount method from Cog\Contracts\Love\Likeable\Models\Likeable contract
  • Removed scopeOrderByDislikesCount method from Cog\Contracts\Love\Likeable\Models\Likeable contract

View the changes from 3.1.0 to 4.0.0