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
Bot releases are hidden (Show)
Published by antonkomarev over 5 years ago
Published by antonkomarev over 5 years ago
Published by antonkomarev over 5 years ago
isReactedTo
& isNotReactedTo
methods names of Reacter
facade were changed to hasReactedTo
& hasNotReactedTo
Published by antonkomarev over 5 years ago
Reacter
& Reactant
facadesviaLoveReacter
method to Reacterable
trait & contractviaLoveReactant
method to Reactable
trait & contractCog\Laravel\Love\Facades\Love
global facadePublished by antonkomarev over 5 years ago
--model
option of love:setup-reacterable
& love:setup-reactable
Artisan commandsPublished by antonkomarev over 5 years ago
love:setup-reacterable
& love:setup-reactable
Artisan commands were addedPublished by antonkomarev over 5 years ago
Published by antonkomarev over 5 years ago
Published by antonkomarev over 5 years ago
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.
ReactionType
modelReacter
modelReactant
modelReactionTotal
modelReactionHasBeenAdded
eventReactionHasBeenRemoved
eventlove_reacters
database table was addedlove_reactants
database table was addedlove_reaction_types
database table was addedlove_reactant_reaction_totals
database table was addedLiker
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 queueReactionTotal
updates on background using queueLikeableWasLiked
event was removedLikeableWasDisliked
event was removedLikeableWasUnliked
event was removedLikeableWasUndisliked
event was removedPublished by antonkomarev about 6 years ago
Published by antonkomarev over 6 years ago
Published by antonkomarev over 6 years ago
Published by antonkomarev almost 7 years ago
Cog\Contracts\Love\Liker\Models\Liker
contract with methods like
, dislike
, unlike
, undislike
, toggleLike
, toggleDislike
, hasLiked
, hasDisliked
like
renamed to likeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractdislike
renamed to dislikeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractunlike
renamed to unlikeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractundislike
renamed to undislikeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractliked
renamed to likedBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractdisliked
renamed to dislikedBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractlikeToggle
renamed to toggleLikeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractdislikeToggle
renamed to toggleDislikeBy
in Cog\Contracts\Love\Likeable\Models\Likeable
contractPublished by antonkomarev almost 7 years ago
LikeableRecount
moved from Cog\Likeable\Console
to Cog\Laravel\Love\Console\Commands
namespaceLikeableRecount
renamed to Recount
Cog\Likeable\Contracts
to Cog\Contracts\Love
namespacelike
renamed to love_likes
like_counter
renamed to love_like_counters
updated_at
was added to love_likes
tablecreated_at
& updated_at
were added to love_like_counters
tableCog\Likeable\Events
to Cog\Laravel\Love\Likeable\Events
namespaceModelWasDisliked
renamed to LikeableWasDisliked
ModelWasLiked
renamed to LikeableWasLiked
ModelWasUndisliked
renamed to LikeableWasUndisliked
ModelWasUnliked
renamed to LikeableWasUnliked
$model
was renamed to $likeable
LikeType::LIKE
& LikeType::DISLIKE
are uppercase now and equal to LIKE
& DISLIKE
respectively\RuntimeException
instead of \Exception
LikeTypeInvalidException
moved from Cog\Likeable\Contracts\Exceptions
to Cog\Contracts\Love\Like\Exceptions
LikeTypeInvalidException
renamed to InvalidLikeType
LikerNotDefinedException
moved from Cog\Likeable\Contracts\Exceptions
to Cog\Contracts\Love\Liker\Exceptions
LikerNotDefinedException
renamed to InvalidLiker
ModelInvalidException
moved from Cog\Likeable\Contracts\Exceptions
to Cog\Contracts\Love\Likeable\Exceptions
ModelInvalidException
renamed to InvalidLikeable
ModelObserver
moved from Cog\Likeable\Observers
to Cog\Laravel\Love\Likeable\Observers
namespaceModelObserver
renamed to LikeableObserver
LikableServiceProvider
was moved from Cog\Likeable\Providers
to Cog\Laravel\Love\Providers
namespaceLikableServiceProvider
was renamed to LoveServiceProvider
Cog\Likeable\Contracts\HasLikes
contractCog\Likeable\Traits\HasLikes
traitscopeWhereLikedBy
method from Cog\Contracts\Love\Likeable\Services\LikeableService
contractscopeWhereLikedBy
method from Cog\Laravel\Love\Likeable\Services\LikeableService
classscopeOrderByLikesCount
method from Cog\Contracts\Love\Likeable\Services\LikeableService
contractscopeOrderByLikesCount
method from Cog\Laravel\Love\Likeable\Services\LikeableService
classgetLikesCountAttribute
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractgetDislikesCountAttribute
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractgetLikedAttribute
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractgetDislikedAttribute
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractgetLikesDiffDislikesCountAttribute
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractscopeWhereLikedBy
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractscopeWhereDislikedBy
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractscopeOrderByLikesCount
method from Cog\Contracts\Love\Likeable\Models\Likeable
contractscopeOrderByDislikesCount
method from Cog\Contracts\Love\Likeable\Models\Likeable
contract