title: Auto redirect in Laravel
body: <p>As a simple example, I am wanting to do the same as StackOverflow with regards to question URL redirect. Here is an example:</p>
  
  <p>If I go to:</p>
  
  <pre><code>https://stackoverflow.com/questions/29092079
  </code></pre>
  
  <p>I get redirected to:</p>
  
  <pre><code>https://stackoverflow.com/questions/29092079/what-exactly-is-laravel
  </code></pre>
  
  <p>I would like to replicate this.</p>
  
  <p>My <code>routes/web.php</code> entry is: <code>Route::get('blog/{id}/{slug}', 'BlogController@show');</code>.</p>
  
  <p>This works how it says it should but if I navigate without the <code>slug</code>, it doesn't redirect.</p>
  
  <p>Would the best way to acheive this be to set the redirect in the controller?</p>
  
  <p>Laravel version: <strong>5.5</strong></p>