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
Basically when you are defining the routes, you use something called route parameters, something like this
Route::get('/visit/{id}', 'Controller@someMethod');
This id will be available as a parameter in your handler funtion,
public function someMethod($id) { // you have the id here }