Search
 
SCRIPT & CODE EXAMPLE
 

PHP

db connection postgres laravel

# cat myproject/.env | grep DB

DB_CONNECTION=pgsql

DB_HOST=<your_database_IP_address>

DB_PORT=5432

DB_DATABASE=postgres

DB_USERNAME=postgres

DB_PASSWORD=postgres
Comment

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
Comment

PREVIOUS NEXT
Code Example
Php :: laravel redirect to previous page 
Php :: php how to convert string to int 
Php :: object of class symfonycomponentformformview could not be converted to string 
Php :: collection laravel Gets the last key of an array 
Php :: decimal to binary php 
Php :: docker invalid port 80 
Php :: moodle webservice create user phone2 
Php :: zend redirect to url 
Php :: get http host laravel 
Php :: check network connection php 
Php :: php get all the mondays of the year 
Php :: get unique values in laravel 
Php :: webuzo set upload limit 
Php :: laravel display validation errors ajax 
Php :: the requested php extension ext-intl * is missing from your system ubuntu 
Php :: strtoupper php 
Php :: /laravel-2020-07-27.log" could not be opened 
Php :: php pdo set charset 
Php :: laravel force user logout 
Php :: laravel 419 page expired on login 
Php :: laravel send post request from controller 
Php :: str_replace php variable 
Php :: laravel query builder join 
Php :: php load specific post id on language 
Php :: generate token in php 
Php :: php array formatted output 
Php :: fix excel file wrong language php 
Php :: php artisan cache 
Php :: wordpress get text of wordpress post 
Php :: filemtime($current_file_name); 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =