Releases: cyrildewit/eloquent-viewable
Releases · cyrildewit/eloquent-viewable
v6.0.0-alpha.1
chore: update links
v5.2.1
Changed
- Add support for Laravel 8
v5.2.0
Fixed
- Use
CyrildeWit\EloquentViewable\Contracts\Viewsto resolve Views instance from container.
v5.1.0
Changed
- Remove default value (
null) for viewable inviews()helper.
v5.0.0
Added
- Added
Viewscontract. - Added
Visitorcontract. - Added the
Visitorclass which represents the current visitor. - Added protected
getViewableTypeSlug()toCacheKey::class. - Added
orderByViewsquery scope toViewabletrait. - Added
orderByUniqueViewsquery scope toViewabletrait. - Added
withViewsCountquery scope toViewabletrait.
Changed
- The
CyrildeWit\EloquentViewable\Viewabletrait has been renamed toCyrildeWit\EloquentViewable\InteractsWithViews. - Renamed
session.keytocooldown.keyin configuration file. - Changed the
Viewsclass constructor arguments. Added theVisitoras first argument and removedVisitorCookieRepository $visitorCookieRepository,rawlerDetector $crawlerDetectorandIpAddressResolver $ipAddressResolver. - Replaced calls to
$this->crawlerDetectorinViewswith newVisitorclass implementation. - Replaced calls to
requestHasDoNotTrackHeaderinViewswith newVisitorclass implementation. - Changed type of primary key from
incrementstobigIncrementsinviewstable migration. - Bumped minimum requirements for Laravel framework components to
^6.0|^7.0. - Removed check for provided viewable type in
getConnectionName(),getDatabaseName(),getModelSlug()andgetKeySluginCacheKey::class. - Renamed
ViewSessionHistoryclass toCooldownMananger. - Changed constructor of
CooldownManagerclass. TheIlluminate\Contracts\Config\Repositoryhas been added as first parameter and the cooldown key is now retrieved from this instance. - The
Viewsclass now implements theViewscontract. - The constructor of the
Viewsclass has been changed. - Moved
Facades/Viewstosrc/and renamed it toViewsFacade. - The global
views()helper now supports viewable types.
Removed
- Dropped support for
nesbot/carbon^1.22. - Removed the deprecated
overrideIpAddressmethod from theViewsclass. - Removed the deprecated
overrideVisitormethod from theViewsclass. - Removed
requestHasDoNotTrackHeadermethod fromViewsclass. - Removed
$viewableTypeargument from constructor ofCacheKey::class. - Removed static
fromViewableTypemethod fromCacheKey::class. - Removed
HeaderResolvercontract and class. - Removed
IpAddressResolvercontract and class. - Removed
uniqueVisitor()scope fromViewmodel. - Removed
Enums\SortDirectionclass. - Removed
OrderByViewsScopeclass. - Removed the
countByTypemethod from theViewsclass. - Removed the
VisitorCookieRepository(logic is move to theVisitorclass).
v5.0.0-alpha.2
fix: boot method name
v5.0.0-alpha.1
chore: remove bad example
v5.0.0-alpha.0
test: update tests
v4.1.1
Fixed
- Update required dependencies in composer.json to adhere to new Laravel 6 verison scheme
v4.1.0
Changed
- Add support for Laravel 6