I have a datatable and I want to go to detail data page when I click the Data ID
<td><a href= "{{ route('ReservationDetail') }}" >{{ $getData->ID }}</a></td>
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
return Redirect('ReservationDetail?ID='.$reservation->ID);
when I trying to make like that in my view, I always get error.
<td><a href= "{{ route("ReservationDetail?ID='.$getData->ID'") }}" >{{ $getData->ID }}</a></td>
ErrorException in UrlGenerator.php line 307: Route [ReservationDetail?ID='.3'] not defined