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 ($pa
This is late. But for the benefit of others like me;
If you do not have to do it in a method like the answers above have shown, As of Laravel 5.0 (Not sure about previous versions), you can do
$request->route('id');
That returns the value of the id parameter on the route.
id