Home>

https: // team-lab .github.io/skillup/step2/03-laravel-demo.html
I am studying with reference to the above site.

Try using 4 models (DB access)
The command and locallhost error occur.

Is docker's environment construction bad?
Is the db connection not working?
I have no idea how to fix it. .

Can you give me advice?

  • Answer # 1

    Because Docker's postgres has not been started correctly.

    Every time, Laravel beginners don't have to use Docker.
    Don't use the Docker as a reference because I don't know what it teaches.
    From now on, if you ask a Docker error at the stage of studying Laravel, it will not proceed.

    If you install PHP and composer and can create a Laravel project
    SQLite works reliably withphp artisan serveand database.

  • Answer # 2

    https://mrkmyki.com/2018/11/25/docker-for-windows%E3%81%A8laradoc%E3%81%A7postgres%E3%81%AE%E3%82% B3% E3% 83% B3% E3% 83% 86% E3% 83% 8A% E3% 81% 8C% E8% B5% B7% E5% 8B% 95% E3% 81% A7% E3% 81% 8D% E3% 81% AA% E3% 81% 84% E5% A0% B4% E5% 90% 88% E3% 81% AE% E5% AF% BE/

    Solved above.