title: pagination in Laravel 5
body: <p>I'm having some trouble implementing pagination in Laravel 5. Though probably not what you would think.
  I can get everything to work but can't understand how to get it to pull the correct information on the second page.
  Here is what I have:</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>Route::resource('find-a-wp-theme', 'searchController');
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public function store(){
  
  
          $themes['themes'] = Fulls::where("tags", "like", "%".$_POST['theme']."%")-&gt;orwhere("tags", "like", "%".$_POST['free']."%")-&gt;orwhere("title", "like", "%".$_POST['free']."%")-&gt;paginate(12);
  
          return view('find-a-wp-theme', $themes);
  
     }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>@if($themes)                                
  
          @foreach($themes as $theme)
  
          {{$theme['title']}}&lt;br /&gt;
          &lt;img style="width:250px;" src="{{$theme['image']}}"&gt;&lt;br /&gt;
  
          @endforeach
          {!! $themes-&gt;render() !!}
  
  
      @endif  
  </code></pre>
  
  <p>Up till here everything works just fine. My problem is that when I click the paginating button it takes me to mypage?page=2 which actually takes me to the resource <code>index()</code> and I can't understand how to implement this correctly.
  Any help would be much appreciated!</p>