Releases: cyrildewit/eloquent-viewable
Releases · cyrildewit/eloquent-viewable
v2.1.0
This release accidentally contains no updates.
v2.0.0
Added
- Added
visitor
collumn to thecreate_views_table
migration stub
Changed
- Changed the package name from
cyrildewit/laravel-page-view-counter
tocyrildewit/eloquent-viewable
- Renamed the
HasPageViewCounter
trait toViewable
- Renamed the
PageViewCounterServiceProvider
class toEloquentViewableServiceProvider
- 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 withaddView
in theViewable
trait - Replaced all
getPageViews<suffix>
methods withgetViews
in theViewable
trait
Removed
- Removed the
addPageViewThatExpiresAt
method from theViewable
trait - The DateTransformer functionality has been removed
v1.0.5
v1.0.4
v1.0.3
v1.0.2
This fix was added by @peyman3d.
Fixed
- Fix where clauses in
retrievePageViews()
method inHasPageViewCounter
because they were overriding each other.
v1.0.1
Changed
- Removed the protected
transformDate()
method from theHasPageViewCounter
trait and put it into his own helper class:DateTransformer
.
v1.0.0
Added
- Added the
UniquePageViewsBefore()
method to theHasPageViewCounter
trait. ViewViewableTest.php
Changed
- Replaced
fromCamelCaseToDashes()
method inSessionHistory
with the providedsnake_case()
method of Laravel. - Updated the tests.
Removed
VisitVisitableTest.php
v1.0.0-alpha
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
toPageViewCounter
. - 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
Changed
- The Eloquent model will now pass the fillable attributes