title: Laravel can't acess Postgres database
body: <p>I need a help to connect Laravel with PostgreSQL database in Linux (ElementaryOS based on ubuntu 14.04)</p>
  
  <p>I already installed the php-pgsql driver and restarted the apache2 and postgresql services.</p>
  
  <p>This is my php.ini:</p>
  
  <pre><code>extension=pgsql.so
  extension=pdo_pgsql.so
  </code></pre>
  
  <p>This is the query:</p>
  
  <pre><code>$usuario = DB::select('select * from usuario');
  </code></pre>
  
  <p>Error in laravel:</p>
  
  <p>"could not find driver (SQL: select * from usuario)"</p>
  
  <p>My .env:</p>
  
  <pre><code>DB_CONNECTION=pgsql
  DB_HOST=127.0.0.1
  DB_PORT=5432
  DB_DATABASE=minha_db
  DB_USERNAME=meu_user 
  DB_PASSWORD=minha_senh3
  </code></pre>
  
  <p>database.php</p>
  
  <pre><code>'pgsql' =&gt; [
      'driver' =&gt; 'pgsql',
      'host' =&gt; env('DB_HOST', '127.0.0.1'),
      'port' =&gt; env('DB_PORT', '5432'),
      'database' =&gt; env('DB_DATABASE', 'minha_db'),
      'username' =&gt; env('DB_USERNAME', 'meu_user'),
      'password' =&gt; env('DB_PASSWORD', 'minha_senha'),
      'charset' =&gt; 'utf8',
      'prefix' =&gt; '',
      'schema' =&gt; 'public',
      'sslmode' =&gt; 'prefer',
  ],
  </code></pre>