title: Ascending descending with one link button in php laravel
body: <p>I want to order ascending and descending data with one link. fist click make ascending order and second click make descending .</p>
  
  <p>I'm developing with Laravel Framework.</p>
  
  <p>I'm successfully developed ascending function with link request. Here is my code >></p>
  
  <p>View File >></p>
  
  <pre><code>&lt;th width="18%"&gt;&lt;a href="{!! URL::route('cms.place.filterByAsc', ['word'=&gt;'name']) !!}" class="" data-toggle="tooltip" data-placement="top" title="Edit"&gt;Name&lt;/a&gt;&lt;/th&gt;
  </code></pre>
  
  <p>Controller >></p>
  
  <pre><code>public function filterByAsc($word)
  {
      $places = $this-&gt;place-&gt;ascendingBy($word);
      return view('cms.place.index',compact('places')); 
  }
  </code></pre>
  
  <p>Now , I have no idea how to sent get_request with the same link . Please show me the way. </p>
  
  <p>Thanks and respect to all . </p>