fraank / ViewCounter

view and like functionality for your laravel project
Apache License 2.0
16 stars 7 forks source link

ViewCounter Package broke with Laravel 5.1.36 #7

Open kay899 opened 8 years ago

kay899 commented 8 years ago

Hi,

I am using your wonderful package, but while update to a higher Laravel 5.1 version than 35, the packages broken with an error, when you first view a new object and the counter tries to set this into the database.

The error is:

[2016-10-08 12:25:07] local.ERROR: exception 'ErrorException' with message 'Undefined property: SGProject\Models\News::$counter' in /Applications/XAMPP/xamppfiles/htdocs/sgproject/vendor/fraank/view-counter/src/ViewCounterTrait.php:38

It seems that this change in Laravel 5.1.36 is causing that error:

https://github.com/laravel/framework/compare/v5.1.35...v5.1.36

src/Illuminate/Database/Eloquent/Model.php

_issue() Function is not working with the package.

Perhaps you could fix that?

Thanks kay899