Laravel view count increments even with session
<p>My view count still increments even though I have session can any one tell what is wrong with my code?</p>

<pre><code>if(! ( Session::get($id) == $id)){
        Post::where('id', $id)-&gt;increment('view_count');
        dd('added count');
        Session::put('id', $id);
      }
</code></pre>

<p>The id is the blog->id</p>