title: Laravel Configure Route with custom Key
body: <p>I want to use this url format :</p>
  
  <p><a href="https://example.com/common-parts-city-slug" rel="nofollow noreferrer">https://example.com/common-parts-city-slug</a></p>
  
  <p>I did this :</p>
  
  <pre><code>Route::get('common-parts-{city}', 'SeoController@commonPartsCity');
  </code></pre>
  
  <p>It works if if i use the City ID : <a href="https://example.com/common-parts-1" rel="nofollow noreferrer">https://example.com/common-parts-1</a></p>
  
  <p>But i want to use the slug. So i did :</p>
  
  <pre><code>Route::get('common-parts-{city:slug}', 'SeoController@commonPartsCity');
  </code></pre>
  
  <p>And doesn't work with any slug : <a href="https://example.com/common-parts-slug-test" rel="nofollow noreferrer">https://example.com/common-parts-slug-test</a> (error 404)</p>
  
  <p>And my Controller Function</p>
  
  <pre><code>public function commonPartsCity(City $city)
      {
          return view('seo.commonpartscity');
      }
  </code></pre>
  
  <p>How i can make it works ?</p>
  
  <p>Thanks</p>