 <p>A <em>MiddleWare</em> helped me.</p> <pre><code>Route::group(array('middleware' =&gt; 'resolve_domain'), function () { Route::get('/', 'WhitePapersController@getHomepage'); }); </code></pre> <p>And in <em>MiddleWare</em> - </p> <pre><code>public function handle($request, Closure $next) { $params = explode('.', $request-&gt;getHost()); $sub_domains = config('admin_configs.editions'); // Predefined sub-domain $edition = false; if(!empty($params[0]) &amp;&amp; in_array($params[0], $sub_domains, true)) { $edition = $params[0]; } define('DOMAIN_EDITION', $edition); // Set constant to be used. return $next($request); } </code></pre>