Skip to content

Releases: cyrildewit/eloquent-viewable

v2.1.0

06 Jun 15:46
Compare
Choose a tag to compare

This release accidentally contains no updates.

v2.0.0

28 May 14:00
Compare
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
Compare
Choose a tag to compare

Fixed

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

v1.0.4

20 Feb 16:00
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Changed

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

v1.0.0

24 Dec 13:08
Compare
Choose a tag to compare

Added

  • Added the UniquePageViewsBefore() method to the HasPageViewCounter trait.
  • ViewViewableTest.php

Changed

  • Replaced fromCamelCaseToDashes() method in SessionHistory with the provided snake_case() method of Laravel.
  • Updated the tests.

Removed

  • VisitVisitableTest.php

v1.0.0-alpha

23 Dec 21:06
Compare
Choose a tag to compare
v1.0.0-alpha Pre-release
Pre-release

In the past few days I've been working on a new version of this package. My goal was to get rid of all the attributes that are appended to your model. So, guess what? They are all gone! The are replaced by methods. You can still create your own attributes.

This release is quite stable! But not ready for production. There are maybe a few bugs. If you find one please report it in the issue tracker. With this release I hope that I could get some feedback.

Added

  • New trait: HasPageViewCounter.php
  • New service provider: PageViewCounterServiceProvider.php
  • New SessionHistory helper.

Changed

  • Package name: PageVisitsCounter to PageViewCounter.
  • PHP namespace: Cyrildewit\PageVisitsCounter -> CyrildeWit\PageViewCounter.
  • Config file name: page-visits-counter.php -> page-view-counter.php.
  • PageView model contract: PageVisit.php -> PageView.php
  • Displaced SessionHistory to Helpers/

Removed

  • Trait: HasPageVisitsCounter.php.
  • Service provider: PageVisitsCounterServiceProvider.php.
  • SessionHistory class.

v0.1.7

10 Oct 10:39
Compare
Choose a tag to compare

Changed

  • The Eloquent model will now pass the fillable attributes