Releases: cybercog/laravel-love
Releases · cybercog/laravel-love
6.0.0
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
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 added
Changed
Liker
trait replaced withReacterable
Likeable
trait replaced withReactable
LikeCounter
model replaced withReactionCounter
love_likes
database table was replaced withlove_reactions
love_like_counters
database table was replaced withlove_reactant_reaction_counters
ReactionCounter
updates on background using queueReactionTotal
updates on background using queue
Removed
- Laravel 5.5 support obsolete
- PHP < 7.1.3 support obsolete
LikeableWasLiked
event was removedLikeableWasDisliked
event was removedLikeableWasUnliked
event was removedLikeableWasUndisliked
event was removed
5.2.0
5.1.1
5.1.0
5.0.0
Added
- Added
Cog\Contracts\Love\Liker\Models\Liker
contract with methodslike
,dislike
,unlike
,undislike
,toggleLike
,toggleDislike
,hasLiked
,hasDisliked
Changed
- Method
like
renamed tolikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
dislike
renamed todislikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
unlike
renamed tounlikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
undislike
renamed toundislikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
liked
renamed tolikedBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
disliked
renamed todislikedBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
likeToggle
renamed totoggleLikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract - Method
dislikeToggle
renamed totoggleDislikeBy
inCog\Contracts\Love\Likeable\Models\Likeable
contract
4.0.0
Changed
- Console command
LikeableRecount
moved fromCog\Likeable\Console
toCog\Laravel\Love\Console\Commands
namespace - Console command
LikeableRecount
renamed toRecount
- Contracts moved from
Cog\Likeable\Contracts
toCog\Contracts\Love
namespace - Database table
like
renamed tolove_likes
- Database table
like_counter
renamed tolove_like_counters
- Database table column
updated_at
was added tolove_likes
table - Database table columns
created_at
&updated_at
were added tolove_like_counters
table - Events were moved from
Cog\Likeable\Events
toCog\Laravel\Love\Likeable\Events
namespace - Event
ModelWasDisliked
renamed toLikeableWasDisliked
- Event
ModelWasLiked
renamed toLikeableWasLiked
- Event
ModelWasUndisliked
renamed toLikeableWasUndisliked
- Event
ModelWasUnliked
renamed toLikeableWasUnliked
- All Likeable's events public property
$model
was renamed to$likeable
- Constant values
LikeType::LIKE
&LikeType::DISLIKE
are uppercase now and equal toLIKE
&DISLIKE
respectively - Exceptions extends
\RuntimeException
instead of\Exception
- Exception
LikeTypeInvalidException
moved fromCog\Likeable\Contracts\Exceptions
toCog\Contracts\Love\Like\Exceptions
- Exception
LikeTypeInvalidException
renamed toInvalidLikeType
- Exception
LikerNotDefinedException
moved fromCog\Likeable\Contracts\Exceptions
toCog\Contracts\Love\Liker\Exceptions
- Exception
LikerNotDefinedException
renamed toInvalidLiker
- Exception
ModelInvalidException
moved fromCog\Likeable\Contracts\Exceptions
toCog\Contracts\Love\Likeable\Exceptions
- Exception
ModelInvalidException
renamed toInvalidLikeable
- Observer class
ModelObserver
moved fromCog\Likeable\Observers
toCog\Laravel\Love\Likeable\Observers
namespace - Observer class
ModelObserver
renamed toLikeableObserver
- Service Provider
LikableServiceProvider
was moved fromCog\Likeable\Providers
toCog\Laravel\Love\Providers
namespace - Service Provider
LikableServiceProvider
was renamed toLoveServiceProvider
Removed
- Removed deprecated
Cog\Likeable\Contracts\HasLikes
contract - Removed deprecated
Cog\Likeable\Traits\HasLikes
trait - Removed
scopeWhereLikedBy
method fromCog\Contracts\Love\Likeable\Services\LikeableService
contract - Removed
scopeWhereLikedBy
method fromCog\Laravel\Love\Likeable\Services\LikeableService
class - Removed
scopeOrderByLikesCount
method fromCog\Contracts\Love\Likeable\Services\LikeableService
contract - Removed
scopeOrderByLikesCount
method fromCog\Laravel\Love\Likeable\Services\LikeableService
class - Removed
getLikesCountAttribute
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
getDislikesCountAttribute
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
getLikedAttribute
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
getDislikedAttribute
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
getLikesDiffDislikesCountAttribute
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
scopeWhereLikedBy
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
scopeWhereDislikedBy
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
scopeOrderByLikesCount
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract - Removed
scopeOrderByDislikesCount
method fromCog\Contracts\Love\Likeable\Models\Likeable
contract