title: Laravel dusk not working .env.dusk.local
body: <p>I have an application and I want to use Laravel Dusk.</p>
  
  <p>I created a file named <code>.env.dusk.local</code> with a database for tests and a file named <code>.env</code> with my default database.</p>
  
  <p>I ran the php artisan command and created a user by <code>/register</code>.</p>
  
  <p>After I created a login test with the same email but with a different password, this would not be a problem because in <code>.env.dusk.local</code> it would be a different bank and would not have any users registered.</p>
  
  <p>But when I run the php artisan dusk command it takes the information from the original <code>.env</code> and ends up erasing all records from my default database.</p>
  
  <p>I would like to know how to load the information from my <code>.env.dusk.local</code> and use my test database.</p>
  
  <p>.env default</p>
  
  <pre><code>APP_ENV=local
  APP_KEY=base64:K8otIkxJk0rFsZYSEq1hwBuaxQX3QI3Bb7ZmemJRIWg=
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://localhost:8000
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=laravel_dusk
  DB_USERNAME=root
  DB_PASSWORD=123456
  </code></pre>
  
  <p>.env.dusk.local</p>
  
  <pre><code>APP_ENV=local
  APP_KEY=base64:K8otIkxJk0rFsZYSEq1hwBuaxQX3QI3Bb7ZmemJRIWg=
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://localhost:8000
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=laravel_dusk_test
  DB_USERNAME=root
  DB_PASSWORD=123456
  </code></pre>
  
  <p>Mu function for testLogin</p>
  
  <pre><code>namespace Tests\Browser;
  
  use Illuminate\Foundation\Testing\DatabaseMigrations;
  use Illuminate\Support\Facades\App;
  use Tests\DuskTestCase;
  
  class LoginTest extends DuskTestCase
  {
  
  
      use DatabaseMigrations;
      /**
       * A Dusk test example.
       *
       * @return void
       */
      public function testLogin()
      {
          $user = factory(\App\User::class)-&gt;create(['email' =&gt; 'lucas@example.com']);
  
          $this-&gt;browse(function ($browser) use ($user) {
              $browser-&gt;visit('/login')
                      -&gt;type('email', $user-&gt;email)
                      -&gt;type('password', 'secret')
                      -&gt;press('Login')
                      -&gt;assertPathIs('/home');
          });
      }
  }
  </code></pre>
  
  <p><a href="https://github.com/thuram/laravel-dusk" rel="noreferrer">Here is this project in github</a> </p>