title: Laravel 8 Routing Subdomain
body: <p>I'm new to using Laravel 8. In previous Laravel version 7, we can pass <strong>subdomain</strong> name with this way</p>
  <pre><code>    Route::group( [ 'domain' =&gt; '{admin}.example.com' ], function () {
          Route::get('/index', 'HomeController@index($account)' );
      }
  </code></pre>
  <p>But, in Laravel 8 structure code to call <strong>Controller</strong> was changed like this.</p>
  <pre><code>    Route::domain('{admin}.example.com')-&gt;group(function () {
          Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])-&gt;name('home');
      });
  </code></pre>
  <p>I've been looking for the docs but have not found them. Can you show me docs or helping me to send / passing <em>subdomain</em> from <strong>web.php</strong> to <strong>Controller</strong></p>