Releases: willvincent/laravel-rateable
Releases · willvincent/laravel-rateable
3.3.1
3.3.0
Laravel 11 support
3.2.0
New in 3.2.0
A pull request from @metaversedataman adds the following:
- userAverageRating() and userSumRating() accept an optional user id,
adding the ability to display arbitrary users' ratings, not just those of the currently authenticated user. - ratingPercent() accepts an optional second parameter,
$rounded
(boolean, defaults to false),
when true the returned value will be rounded up to the nearest integer withceil()
3.1.0
Laravel 10 Support 🎉
3.0.0
🎉 Laravel 9 support 🎉
3.x+ drops support for anything below Laravel 8.0, and drops support for php versions below 8.0
2.4.1
2.4.0
New
- Optional comments on ratings by @victoryoalli
Fixed
- Does not work with morphMap by @mohamedsabil83
2.3.0
2.2.1
Fixed typo preventing vendor publish from successfully publishing the migration file
2.2.0
- Refactor codebase to be based on spatie's package-skeleton-laravel
- Add new
rate()
andrateOnce()
methods to simplify rating, and facilitate restricting users to one rating per model - Add new
timesRated()
andusersRated()
methods to get counts of total ratings or unique users' ratings for a model