laravel connect to postgresql locally ubuntu code example
Example 1: how to start postgresql laravel
DB_CONNECTION=pgsqlDB_HOST=127.0.0.1DB_PORT=5432DB_DATABASE=database_nameDB_USERNAME=postgresDB_PASSWORD=your_choosen_password
Example 2: how to start postgresql laravel
extension=pdo_pgsqlextension=pgsql