Closed Elusoji closed 1 year ago
I think the API of this package could have some improvements, since I don't provide a way of accessing this information after a view record was made.
Your solution is more practical, but I think you should use the returned value from the ->record()
method instead of the extra count query. It returns a boolean.
I am using ur package to record post view with this package
https://github.com/ansezz/laravel-gamify
so I will like to give author point when there post is viewed but the view must be unique in order to give point
example when a user view the author post give author point , but when that same user view the same post again don't give author point