title: Laravel Subdomain and Valet
body: <p>I have a site that will have a forward facing public version and an auth user side. I am trying to test it locally so I have anything at the root domain point to one view and the subdomain point to another view. The trouble is they both point to the <code>welcome</code> view. </p>
  
  <p>web routes</p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  
  Route::domain('pro.scorecard.dev')-&gt;group(function () {
  
      Route::get('/', function() {
          return view('app.dashboard');
      });
  
  });
  </code></pre>
  
  <p>I also ran:</p>
  
  <p><code>valet link pro.scorecard</code></p>
  
  <p>But if I go to <code>pro.scorecard.dev</code> or <code>scorecard.dev</code> they both show the view <code>welcome.blade.php</code></p>