title: Laravel Sub-domain routing and resource controllers
body: <p>Here is my route:</p>
  
  <pre><code>Route::group(array('domain'=&gt;'{subdomain}.example.com'), function()  
  {
      Route::group(array('before'=&gt;array('authenticate')), function()
      {
          Route::resource('post', 'PostController');
  
          Route::resource('comments', 'CommentsController');
  
          Route::resource('forum', 'ForumController');
  
          Route::resource('users', 'UsersController');
  
      });
  });
  </code></pre>
  
  <p>It seems that by default ALL my resource controllers are now taking the subdomain as first parameter and I can't find a way to change it.</p>
  
  <p>If possible, I'd like to ignore the subdomain entirely.</p>
  
  <p>Example use cases:</p>
  
  <p>admin.example.com/forum/1?domain=foo</p>
  
  <p>foo.example.com/forum/1</p>
  
  <p>bar.example.com/forum/2</p>
  
  <p>This site hosts 2 forums, but there is only 1 admin managing all of them. For admin to access the forum foo, admin must also supply domain=foo to look at it.</p>