I'm trying to figure out the correct syntax to use here in both the href link in my blade and the {id} passing in the route, but the documentation for laravel (5.8) has me a bit confused.
My controller function should be good, but I'm wondering how I would appropriately pass an ID (currently echoed in the blade) properly through the button href link, and then handle that ID properly in the route so that I get not only the page at the url id\progress but also get the $id in the controller function.
Am I on the right track?
blade.php
<?php echo($id) ?>
<button><a href=""></a></button>
web.php (routes)
Route::get('/{id}/progress', 'Track\TrackProgressController@index')
->name('track.progress');
TrackProgressController
public function index($id)
{
}