MAMP with Laravel Unix Socket

后端 未结 5 1776
南方客
南方客 2021-02-04 14:47

I\'m working with MAMP on my local development server on my laravel application and I\'m trying to figure out how I can safely setup my server so I don\'t have to use the follow

5条回答
  •  长情又很酷
    2021-02-04 15:41

    Check the environment detection part in the bootstrap/start.php. You should add your machine's name to the array that has local key. (If you don't know your machine's name, run hostname in terminal. If it's something stupid, Google how to change it. It's pretty simple.) Then copy and paste your database configurations to app/config/local/database.php. Create the file if it doesn't exists.

提交回复
热议问题