title: Generate .env file for existing laravel app
body: <p>I've been working on a Laravel app on a dev branch for a while. I just merged the dev branch into the master branch (via Tower, so switched to master branch and then merged dev branch into it) and pushed that to the remote.</p>
  
  <p>The weird thing is that in my dev branch the <code>.env</code> file is now missing, while it was there before.</p>
  
  <p>It should just be ignored as per the <code>.gitignore</code> file, but switching to the master branch shouldn't remove it, right?</p>
  
  <p>Even more weird is that without the <code>.env</code> file my app is still working. I have ran the following commands:</p>
  
  <pre><code>composer dump-autoload
  php artisan config:clear
  php artisan cache:clear
  </code></pre>
  
  <p>and still my app is working without the <code>.env</code> file. Am I missing something here? Can I regenerate an <code>.env</code> file from existing config settings?</p>