title: Mapping route to another route in Laravel
body: <p>I am developing an application in the Laravel 5.2 which must have a friendly URL-s. This is not problem with the regular way, where the {slug} wildcard is handled by a controller but I want to make it in a different way.</p>
  
  <p>For now I have only two controllers:</p>
  
  <ul>
  <li><code>ProductsController@show</code> to show details product</li>
  <li><code>CategoriesController@show</code> to show selected category with listing products which are assigned to it</li>
  </ul>
  
  <p>And routes:</p>
  
  <pre><code>Route::get('product/{product}', 'ProductsCategory@show')-&gt;name('product.show');
  Route::get('category/{category}', 'CategoriesController@show')-&gt;name('category.show');
  </code></pre>
  
  <p>So when I want to echo a just use <code>route('product.show', compact('product'))</code></p>
  
  <p>Nothing special until I want to handle different URL-s which are fetched from a database. I thought it will be possible to make an another routes which are assigned to existing and when I use a <code>route(...)</code> helper it will be handled automatically. But it is not. So for example I have a new URL:</p>
  
  <pre><code>domain.com/new-url-for-product.html
  </code></pre>
  
  <p>so by route it should be assigned to the regular 'product.show' route with some ID, which is handled by route model binder for {product} wildcard. The same for <code>route(..)</code> helper it should print friendly URL-s.</p>
  
  <p>I don't know if my strategy is good. How do you handle with the similar problems?</p>