Skip to content

Releases: cyrildewit/eloquent-viewable

v2.4.0

12 Sep 13:09

Choose a tag to compare

Changed

  • Add support for Laravel 5.7

Deprecated

  • Deprecated the CyrildeWit\Support\IpAddress class
  • Deprecated the CyrildeWit\Viewtracker class
  • Deprecated the scopeOrderByViewsCount method in the Viewable trait
  • Deprecated the scopeOrderByUniqueViewsCount method in the Viewable trait

v2.3.0

01 Aug 14:57

Choose a tag to compare

Added

  • Add orderByUniqueViewsCount scope to Viewable trait

v2.2.0

23 Jul 10:00

Choose a tag to compare

Added

  • Add the ability to add a delay between views from the same session (#73)

Changed

  • Caching is now turned off as default

v2.1.0

06 Jun 15:46

Choose a tag to compare

This release accidentally contains no updates.

v2.0.0

28 May 14:00

Choose a tag to compare

Added

  • Added visitor collumn to the create_views_table migration stub

Changed

  • Changed the package name from cyrildewit/laravel-page-view-counter to cyrildewit/eloquent-viewable
  • Renamed the HasPageViewCounter trait to Viewable
  • Renamed the PageViewCounterServiceProvider class to EloquentViewableServiceProvider
  • Changed the namespace from CyrildeWit\PageViewCounter\xxx to 'CyrildeWit\EloquentViewable'
  • Added new options to the config file and changed the structure
  • Replaced the addPageView method with addView in the Viewable trait
  • Replaced all getPageViews<suffix> methods with getViews in the Viewable trait

Removed

  • Removed the addPageViewThatExpiresAt method from the Viewable trait
  • The DateTransformer functionality has been removed

v1.0.5

15 Mar 07:12

Choose a tag to compare

Fixed

  • Add PageViewCounter to autoload path in composer.json (#50).

v1.0.4

20 Feb 16:00

Choose a tag to compare

Fixed

  • Use the Request facade for getting the ip address of the visitor instead of creating a new empty request (#39)

v1.0.3

12 Jan 17:07
abd8644

Choose a tag to compare

Fixed

  • Use ->getKey() method to get the models primary key value, instead of using the static attribute id #35.

v1.0.2

01 Jan 23:53

Choose a tag to compare

This fix was added by @peyman3d.

Fixed

  • Fix where clauses in retrievePageViews() method in HasPageViewCounter because they were overriding each other.

v1.0.1

28 Dec 10:59
cd5729e

Choose a tag to compare

Changed

  • Removed the protected transformDate() method from the HasPageViewCounter trait and put it into his own helper class: DateTransformer.