title: Laravel return view to last Paginate page
body: <p>I would like to return to a view with compact variable with paginate.</p>
  
  <pre><code>public function detail(Request $request){
  
      $data = DATA::paginate(10);
      $lastPage = $data-&gt;lastPage(); //How to use this variable?
  
      return view('user.data', compact('data'));
  }
  </code></pre>
  
  <p>The default of this paginate will go to first page. </p>
  
  <p>How do I use <code>lastPage</code> variable to go to last page by default?</p>