title: Multiple routes to same Laravel resource controller action
body: <p>I like to use resource controllers in Laravel, as it makes me think when it comes to data modelling. Up to now I’ve got by, but I’m now working on a website that has a public front-end and a protected back-end (administration area).</p>
  
  <p>I’ve created a route group which adds an “admin” prefix, like so:</p>
  
  <pre><code>Route::group(array('before' =&gt; 'auth', 'prefix' =&gt; 'admin'), function()
  {
      Route::resource('article', 'ArticleController');
      Route::resource('event', 'EventController');
      Route::resource('user', 'UserController');    
  });
  </code></pre>
  
  <p>And I can access the methods using the default URL structure, i.e. <strong><a href="http://example.com/admin/article/1/edit" rel="nofollow">http://example.com/admin/article/1/edit</a></strong>.</p>
  
  <p>However, I wish to use a <em>different</em> URL structure on the front-end, that doesn’t fit into what resource controllers expect.</p>
  
  <p>For example, to access an article, I’d like to use a URL like: <strong><a href="http://example.com/news/2014/06/17/some-article-slug" rel="nofollow">http://example.com/news/2014/06/17/some-article-slug</a></strong>. If this article has an ID of 1, it should (under the hood) go to <strong>/article/1/show</strong>.</p>
  
  <p>How can I achieve this in Laravel? In there some sort of pre-processing I can do on routes to match dates and slugs to an article ID, and <em>then</em> pass that as a parameter to my resource controller’s <code>show()</code> method?</p>