I have installed laravel homestead and vagrant. After vagrant up my local site started work.

My migrations worked well and i could connect to DB with PhpStorm ( <http://joxi.ru/a2X45M1S1x3Vw2> )

my .env file contains the same code as written in doc

```
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=54320
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

```

But when I try to register new user I got an error

> 
> SQLSTATE[08006] [7] could not connect to server: Connection refused Is
>  the server running on host "127.0.0.1" and accepting TCP/IP
>  connections on port 54320?
> 
> 
> 

( <http://joxi.ru/nAynW7asYOD39r> )

How it possible when migrations run well but connection refused?