title: Passing value from url to controller in Laravel
body: <p>I have created an a tag in my x.blade.pdp file</p>
  
  <pre><code>&lt;a href="{{ URL::to('/certificate/pdf/'.$year) }}" class= "text-center"&gt;Print Certificate&lt;/a&gt;
  </code></pre>
  
  <p>In web.php</p>
  
  <pre><code>Route::get('/certificate/pdf/{$year}','PDFController@export_pdf');
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>public function export_pdf( $year)
  </code></pre>
  
  <p>But when I click on the link the page cannot be displayed. I would like to use the $year in the where clause .</p>
  
  <p>Please I need some assistance</p>