Skip to content

Releases: cyrildewit/eloquent-viewable

v6.0.0-alpha.1

28 Dec 16:15

Choose a tag to compare

v6.0.0-alpha.1 Pre-release
Pre-release
chore: update links

v5.2.1

22 Sep 15:14
7752049

Choose a tag to compare

Changed

  • Add support for Laravel 8

v5.2.0

28 Mar 14:04

Choose a tag to compare

Fixed

  • Use CyrildeWit\EloquentViewable\Contracts\Views to resolve Views instance from container.

v5.1.0

24 Mar 15:39

Choose a tag to compare

Changed

  • Remove default value (null) for viewable in views() helper.

v5.0.0

16 Mar 17:01
3c3ff5d

Choose a tag to compare

Added

  • Added Views contract.
  • Added Visitor contract.
  • Added the Visitor class which represents the current visitor.
  • Added protected getViewableTypeSlug() to CacheKey::class.
  • Added orderByViews query scope to Viewable trait.
  • Added orderByUniqueViews query scope to Viewable trait.
  • Added withViewsCount query scope to Viewable trait.

Changed

  • The CyrildeWit\EloquentViewable\Viewable trait has been renamed to CyrildeWit\EloquentViewable\InteractsWithViews.
  • Renamed session.key to cooldown.key in configuration file.
  • Changed the Views class constructor arguments. Added the Visitor as first argument and removed VisitorCookieRepository $visitorCookieRepository, rawlerDetector $crawlerDetector and IpAddressResolver $ipAddressResolver.
  • Replaced calls to $this->crawlerDetector in Views with new Visitor class implementation.
  • Replaced calls to requestHasDoNotTrackHeader in Views with new Visitor class implementation.
  • Changed type of primary key from increments to bigIncrements in views table migration.
  • Bumped minimum requirements for Laravel framework components to ^6.0|^7.0.
  • Removed check for provided viewable type in getConnectionName(), getDatabaseName(), getModelSlug() and getKeySlug in CacheKey::class.
  • Renamed ViewSessionHistory class to CooldownMananger.
  • Changed constructor of CooldownManager class. The Illuminate\Contracts\Config\Repository has been added as first parameter and the cooldown key is now retrieved from this instance.
  • The Views class now implements the Views contract.
  • The constructor of the Views class has been changed.
  • Moved Facades/Views to src/ and renamed it to ViewsFacade.
  • The global views() helper now supports viewable types.

Removed

  • Dropped support for nesbot/carbon ^1.22.
  • Removed the deprecated overrideIpAddress method from the Views class.
  • Removed the deprecated overrideVisitor method from the Views class.
  • Removed requestHasDoNotTrackHeader method from Views class.
  • Removed $viewableType argument from constructor of CacheKey::class.
  • Removed static fromViewableType method from CacheKey::class.
  • Removed HeaderResolver contract and class.
  • Removed IpAddressResolver contract and class.
  • Removed uniqueVisitor() scope from View model.
  • Removed Enums\SortDirection class.
  • Removed OrderByViewsScope class.
  • Removed the countByType method from the Views class.
  • Removed the VisitorCookieRepository (logic is move to the Visitor class).

v5.0.0-alpha.2

16 Mar 11:38

Choose a tag to compare

v5.0.0-alpha.2 Pre-release
Pre-release
fix: boot method name

v5.0.0-alpha.1

13 Mar 17:20

Choose a tag to compare

v5.0.0-alpha.1 Pre-release
Pre-release
chore: remove bad example

v5.0.0-alpha.0

07 Mar 16:03

Choose a tag to compare

v5.0.0-alpha.0 Pre-release
Pre-release
test: update tests

v4.1.1

18 Oct 13:08

Choose a tag to compare

Fixed

  • Update required dependencies in composer.json to adhere to new Laravel 6 verison scheme

v4.1.0

05 Sep 13:34
52694cf

Choose a tag to compare

Changed

  • Add support for Laravel 6