Closed Fajendagba closed 1 year ago
The current visitor reference is managed by the Visitor class. By default this is a cookie ID. You can add a user_id column to the views table or create a linking table. You should be able to extend the Views class to support setting the user_id of an view before recording it.
So I'm using cyrildewit/eloquent-viewable which works fine with recoding views with post, but I would also like to be able to know if an authenticated user (User Model) has viewed a post.
Does anyone have any suggestion on this.