Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to connect pgsql with laravel

# Search for these two lines within your php.ini and 
# remove the “;” in front of each:
# ;extension=pdo_pgsql
# ;extension=pgsql
# and .env file change database credentials as following:
  
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=database_name
DB_USERNAME=postgres
DB_PASSWORD=your_choosen_password
Source by tonyfrenzy.medium.com #
 
PREVIOUS NEXT
Tagged: #connect #pgsql #laravel
ADD COMMENT
Topic
Name
9+6 =