-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same result #2
Comments
I have the same problem. I count when users see throw route "post/post_id" when i list in another page to show all post and its counter i have the same result for all. |
@Kryptonit3 I have the same problem. |
So for posts you are counting with Then when you show the lists of posts with their views I assume you are doing this: $posts = App\Post::all();
return view('all-posts', compact('posts')); then in blade @foreach($posts as $post)
<li> this is a post - View Count: {{ Counter::show('post', $post->id) }}</li>
@endforeach |
Hi, same problem here (Laravel v5.1.29), i did try as suggested @Kryptonit3, show the same result in the foreach. |
I think it might work :D
to
|
Fix bug as suggested by Roos Kryptonit3-zz#2
Hi, your counter show the same result in foreach. I use Counter::show('user-profile', $user->id), it gets first result in foreach
The text was updated successfully, but these errors were encountered: