This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
Releases: cybercog/laravel-likeable
Releases · cybercog/laravel-likeable
3.1.0
Changed
- Checks if model liked by user will try to search in eager loaded relations first
3.0.1
Changed
UPDATED_AT
constant replaced withsetUpdatedAt
column (#26)
3.0.0
Added
- Laravel 5.5 support
- Laravel Package Auto-Discovery support
- Eloquent related method
getKey
&getMorphClass
added toCog\Likeable\Contracts\Likeable
contract collectLikers
,collectDislikers
&scopeOrderByDislikesCount
methods added toCog\Likeable\Contracts\Likeable
contractcollectLikersOf
&collectDislikersOf
methods toCog\Likeable\Contracts\LikeableService
contract
Changed
Cog\Likeable\Contracts
contract renamed toCog\Likeable\Contracts\Likeable
Cog\Likeable\Traits\HasLikes
trait renamed toCog\Likeable\Traits\Likeable
2.2.5
2.2.4
Added
orderByDislikesCount
scope added toHasLikes
trait.scopeOrderByLikesCount
method toLikeableService
.
Fixed
orderByLikesCount
count only likes now.
2.2.3
2.2.2
2.2.1
2.2.0
Added
Article::orderByLikesCount('asc')
scope for the model. Usesdesc
as default order direction.