Thankfully, Laravel provides a very simple solution to protecting these types of configuration items using "dot" files. First, configure your application to recognize your machine as being in the local environment. Next, create a.env.local.php file within the root of your project, which is usually the same directory that contains your composer.json file.