title: laravel 6 route returing 404 not found
body: <p>While Passing variable in URL and route returning only 404, not found#.
  Did some google and found some result and tried some methods on youtube its also not working. Totally Beginner to laravel</p>
  
  <p>room.blade.php </p>
  
  <pre><code>//In roomdetail-&gt;id its passing the value of room
  &lt;a href="/detail/{{$roomdetail-&gt;id}}" class="btn btn-primary "&gt;Detail&lt;/a&gt;
  </code></pre>
  
  <p>web.php</p>
  
  <pre><code>//The route which I am using
  
  Route::get('/detail/{$id}', 'DetailController@show')-&gt;name('detail.show');
  </code></pre>
  
  <p>DetailController.php</p>
  
  <pre><code>public function show($id)
      {
          dd($id);
      }
  }
  </code></pre>
  
  <p>In DD I want to get the Id so I can fetch data from the database it's showing only 404</p>