PHPnews.io

Environment Files and Database Connections

Written by Laracasts / Original link on Apr. 6, 2021

Every application will require a certain amount of environment-specific configuration. Examples for this might be the name of the database you're connecting to, or which mail host and port your app uses, or even special keys and secret tokens that third party APIs provide you. You can store configuration like this within your .env file, which is located in your project root. In this episode, we'll discuss the essentials of environment files, and then move on to connecting to a MySQL database (using TablePlus).

laracasts

« The Laravel Octane Beta is Available - A Few Tweaks and Consideration »