Kryptonit3-zz/Counter

how to pass counter view data to home page!!!

Closed this issue · 1 comments

in my article.show ti's work great but when use it in my home it's not work all articles is updated

My show.blade code
||
{{ Counter::showAndCount('articles.show', $article->id) }}
My home.blade
||
{{ Counter::showAndCount('articles.show', $article->id) }}

how to get current visit_count of show.blade to home.blade

in two I use foreach to get data.
Thinks....

Sorry I'm not read Hole threads (:

the method showing here
||
If you have records on a page but do not want to count visiting the page displaying the records as a hit on the record itself then change showAndCount to just show. Example Counter::show('job-listings', $job->id) ( for blades use {{ Counter::show('job-listings', $job->id) }} )