I am trying to connect PostgreSQL to Laravel 5.0, but I encountered the exception "Could not find driver in PostgreSQL".
I tried this solution but cannot connect to PostgreSQL
stack overflow
My database.php configuration file is as follows
'default' => 'pgsql' 'pgsql' => [ 'driver' => 'pgsql', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forgeUser'), 'password' => env('DB_PASSWORD', '****'), 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', 'port' => 5432, ]
PDO extensions are included in php.ini
extension=php_pdo.dll extension=php_pdo_pgsql.dll
when i run the following command
php artisan migrate
he gives an error
[PDOException] could not find driver
Works great when we associate PostgreSQL with Core PHP.
Is there any other driver in Laravel? Please guide me.
thanks
source share