Skip to content

v3.0.0

Compare
Choose a tag to compare
@cyrildewit cyrildewit released this 17 Dec 13:38
· 69 commits to 3.x since this release
ba9c485

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