Laravel - Configuration

laravel

How can we configure our database connection?

Open up the .env file and make change to the following:

DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

Where does Laravel keep all of its configuration files?

Configuration files are kept inside the config folder.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License