Monday, April 3, 2017

Laravel 5.4 with PostgreSQL 9.5

Good Afternoon:

I am trying to connect Laravel 5.4 with PostgreSQL 9.5. When I try to apply php artisan migrate I have the follow error:

enter image description here

I modified the php.ini and uncomment the extensions pdo_pgsql and pgsql.

enter image description here

I changed .env and config/database.php

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432

 'default' => env('DB_CONNECTION', 'pgsql'),

I don't know, what can I do for fix it.

Thanks.



via Miguel Herreros Cejas

Advertisement