title: How to call route with value in view Laravel 5.2?
body: <p>I have a datatable and I want to go to detail data page when I click the Data ID</p>
  
  <pre><code>&lt;td&gt;&lt;a href= "{{ route('ReservationDetail') }}" &gt;{{ $getData-&gt;ID }}&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>But I don't know how to add the ID inside the route in a view. In my controller I have a function like this below</p>
  
  <pre><code>return Redirect('ReservationDetail?ID='.$reservation-&gt;ID);
  </code></pre>
  
  <p>when I trying to make like that in my view, I always get error.</p>
  
  <pre><code>&lt;td&gt;&lt;a href= "{{ route("ReservationDetail?ID='.$getData-&gt;ID'") }}" &gt;{{ $getData-&gt;ID }}&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <blockquote>
    <p>ErrorException in UrlGenerator.php line 307:
    Route [ReservationDetail?ID='.3'] not defined</p>
  </blockquote>