Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

casperv163's avatar

Using Postgresql databse in phpstorm with laravel sail

I've got a postgresql database and it's already in phpstorm on the top right. However when I run the command sail artisan migrate, it won't change the tables in phpstorm and neither in postgresql. Does anyone have a solutions for this?

Also when I run migrations: sail artisan migrate; it doesn't update.

0 likes
5 replies
casperv163's avatar

@Tray2 I'd like to use a docker together with postgresql, due to more options further down the line. Thank you though for your suggestion.

casperv163's avatar

@Tray2 I have done that already and it is connected it says, however it just doesn't update...

martinbean's avatar

@casperv163 I can’t say I’ve ever had that issue, and I use Postgres with Sail for pretty much all projects I work on.

Check the name of the database in your .env file.

Please or to participate in this conversation.