Laravel 5 getting ID from URL
问题 I have a table view in which I can click an button icon and redirect to another page carrying the id of the row that has been clicked. @foreach ($patients as $patient) <tr> <td>{{ $patient->pID }}</td> <td>{{ $patient->pName }}</td> <td>{{ $patient->pAddress }}</td> <td>{{ $patient->pBday }}</td> <td>{{ $patient->pPhone}}</td> <td>{{ $patient->pEcon }}</td> <td>{{ $patient->pDreg }}</td> <td></td> <td> <a href="{{ URL::to('visit/'.$patient->pID) }}"> <img src="../images/viewvisit.png" style=