title: Laravel Pagination links vs render
body: <p>I have been working with Laravel 5.x for a few months now and I was just wondering on what is the difference between using links and render when using pagination. I did a few research and people are using the two the same way.</p>
  
  <p>Given I have a array variable that has been returned from my controller and I would cut the pagination into 5 items per view.</p>
  
  <pre><code>public function index()
  {
      $variable = Jobs::getJob()-&gt;paginate(5);
      return view('index', compact('variable'));
  }
  </code></pre>
  
  <p>on my index.blade.php I will display the items that I have taken</p>
  
  <pre><code>@foreach($variable as $key =&gt; $values)
       //code here
  @endforeach
  
  {{ $variable-&gt;render() }}
  //same result as
  {{ $variable-&gt;links() }}
  </code></pre>
  
  <p>My question now is what are the difference between the two and when should one be use instead of the other?</p>
  
  <p>Thanks</p>