title: How to paginate categories in Laravel 5.4
body: <p>I am  creating a blog using Laravel, it is working fine except that I want to display posts of a specific category on a certain page but I want to paginate them to display 3 posts per page, but I cant figure out how to use paginate method on the posts of that specific category, please assist?</p>
  
  <pre><code>//Testing the Blog
      public function getBlog(){
  
          //Get all Laravel Posts(Have category of 1 ) in categories table
          $laravel = Category::find(1)-&gt;posts()-&gt;whereNotNull("title")-&gt;whereNotNull("imageName")-&gt;whereNotNull("slug")-&gt;whereNotNull("created_at")-&gt;get();
  
          return view('blog.index')-&gt;withLaravels($laravel);
      }
  </code></pre>