title: Laravel subdomains route and controller parametrs
body: <p>I have question.
  My routes is</p>
  
  <pre><code>Route::group(['domain' =&gt; '{account}.'.$domain], function () {
      Route::get('/confirmmail/{hash}', 'Auth\RegisterController@confirmEmail');
  });
  </code></pre>
  
  <p>And my controller method is</p>
  
  <pre><code>public function confirmEmail($domain, $hash)
  {
      $user = User::where('confirm_token', $hash)-&gt;firstOrFail();
      $affectedRows = $user-&gt;update(array('active' =&gt; 1));
      if ($affectedRows) {
          Auth::login($user);
          return Redirect::to('http://'.$user-&gt;workshop-&gt;slug.'.'.config('app.domain'));
      } else {
          echo "nie";
      }
  
  }
  </code></pre>
  
  <p>In my method I must use two parametrs $domain and $hash, how I must change route to have </p>
  
  <pre><code>function confirmEmail($hash)
  </code></pre>