title: Laravel 5 subdomain routing on any domain
body: <p>In a laravel 5 application, I'm trying to make a route for subdomain
  without knowing the domain.</p>
  
  <pre><code>Route::group(array('domain' =&gt; 'subdomain.domain.tld'), function() {
      Route::get('/', 'testController@getTest2');
  });
  Route::get('/', 'testController@getTest1');
  </code></pre>
  
  <p>This kind of routing works, and I get getTest2() called for subdomain and getTest1() for calling without subdomain.</p>
  
  <p>Now, I'd like this to work with wildcard domain, but without sending parameters to controller,
  so the application in dev enviroinment can be on any domain.
  (I also considered using .env for storing domain, but that seems too much hassle for just routing)</p>
  
  <p>I've tried</p>
  
  <pre><code>array('domain' =&gt; 'subdomain.{domain}.{tld}')
  </code></pre>
  
  <p>Which requires parameters on controller methods.
  and I've tried</p>
  
  <pre><code>array('domain' =&gt; 'subdomain.{domain?}.{tld?}')
  </code></pre>
  
  <p>Which doesn't require parameters, but sends them anyway, so my actual route parameters get shifted.</p>
  
  <p>I've also seen <a href="http://laravel-tricks.com/tricks/dynamic-subdomain-routing">http://laravel-tricks.com/tricks/dynamic-subdomain-routing</a>, but I don't like the idea of handling my domains in filters.</p>
  
  <p>Is there any other way to have a wildcard domain that will be ignored once route group is handled?</p>