title: Laravel Database [postgres] not configured
body: <p>Can anyone help me to fix this problem please
  the error is database [postgres] not configured.</p>
  
  <p>here is my .env file :</p>
  
  <pre><code>   DB_CONNECTION=postgres
     DB_HOST=localhost
     DB_PORT=5432
     DB_DATABASE=referentiel
     DB_USERNAME=postgres
     DB_PASSWORD=postgres
  </code></pre>
  
  <p>and here is my database.php: </p>
  
  <pre><code>  'default' =&gt; 'postgres',
  
      'pgsql' =&gt; [
          'driver' =&gt; 'pgsql',
          'host' =&gt; env('DB_HOST', '127.0.0.1'),
          'port' =&gt; env('DB_PORT', '5432'),
          'database' =&gt; 'referentiel',
          'username' =&gt; env('postgres', ''),
          'password' =&gt; env('postgres', ''),
          'charset' =&gt; 'utf8',
          'prefix' =&gt; '',
          'schema' =&gt; 'public',
          'sslmode' =&gt; 'prefer',
      ],
  </code></pre>