title: How to fix "Method Illuminate\Database\Eloquent\Collection::links does not exist."?
body: <p>First I use <code>pagination</code> and I want to change to <code>all</code> in my Controller, but I got the error above.</p>
  
  <p>This is what I tried : </p>
  
  <pre><code>$c = CarModel::all();
  </code></pre>
  
  <p>My code : </p>
  
  <pre><code> public function index()
  {
      //$c = CarModel::all(); //got error when use this
      $c = CarModel::paginate(3);
  
      return view('car.car',compact('c'));
  }
  </code></pre>
  
  <p>I want to change to <code>$c = CarModel::all();</code> but I got error.</p>