Reloading .env variables without restarting server (Laravel 5, shared hosting)

前端 未结 7 2208
旧巷少年郎
旧巷少年郎 2020-12-23 13:46

My Laravel 5 has run OK until the database was configured, then found this error:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name o         


        
7条回答
  •  太阳男子
    2020-12-23 14:22

    It's possible that your configuration variables are cached. Verify your config/app.php as well as your .env file then try

    php artisan cache:clear
    

    on the command line.

提交回复
热议问题