Skip to content

Releases: cyrildewit/eloquent-viewable

v3.0.2

25 Dec 13:48
Compare
Choose a tag to compare

Fixed

  • The method delayInSession isn't working properly

v3.0.1

25 Dec 13:26
Compare
Choose a tag to compare

Fixed

  • Publishing package migrations results in error (#133)

v3.0.0

17 Dec 13:38
ba9c485
Compare
Choose a tag to compare

Added

  • Added Views class with facade
  • Added IpAddressResolver contract with implementation
  • Added HeaderResolver contract with implementation
  • Added VisitorCookieRepository class
  • Added global helper views
  • Added collection column to views table shema
  • Added withinPeriod scope to View model
  • Added uniqueVisitor scope to View model

Changed

  • Bumped minimum required PHP version to ^7.1
  • Require viewable models to implement the Viewable contract
  • Added global views() helper
  • Remove IP address as fallback for visitor cookie when it doesn't exists
  • Changed the isBot method name to isCrawler in CrawlerDetector contract and updated the CrawlerDetectAdapter
  • Changed the visibility of the $detector property from protected to private
  • Add support for 5.7.* of illuminate/config to composer.json
  • Moved config file from publishable/config to config/
  • Replace create_views_table stub with real migration file and load it inside the service provider
  • Allow strings to be passed to the constructor of the Period class
  • Extracted key generation logic from Period class to the Key class

Removed

  • Removed the ViewTracker class
  • Removed the ViewableService class
  • Removed the ProcessView job
  • Removed the update_views_table migration file from resources/database/migrations
  • Removed illuminate/bus as dependency
  • Removed illuminate/queue as dependency
  • Removed illuminate/routing as dependency

v2.5.0

03 Dec 13:04
Compare
Choose a tag to compare

Fixed

  • orderByViewsCount scope doesn't adhere to connection prefix

v2.4.3

21 Oct 09:46
Compare
Choose a tag to compare

Fixed

  • Data too long for column visitor

v2.4.2

21 Oct 09:05
Compare
Choose a tag to compare

Fixed

  • ProcessView job is always failing

v2.4.1

12 Sep 14:45
Compare
Choose a tag to compare

Fixed

  • View is saved before ProcessViews job is ran

v2.4.0

12 Sep 13:09
Compare
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
Compare
Choose a tag to compare

Added

  • Add orderByUniqueViewsCount scope to Viewable trait

v2.2.0

23 Jul 10:00
Compare
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