James mcconnon James mcconnon - 4 months ago 20
Git Question

Version controlling laravel. Which files should i ignore?

When version controlling a laravel 5 app with git, which files should I be ignoring?

Ultimately I understand that node_modules and vendor folders should be ignored, and composer.lock should not. I have got the general gist of that from seeing comments relating to laravel 4 VC, but I'm wondering before I make my first commit, if there's any other files I should be adding to my git ignore?

Answer

According to GitHub:

vendor/
node_modules/

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
bootstrap/cache/
.env.*.php
.env.php
.env

# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
.rocketeer/

And Joe recommends this:

#### joe made this: http://goel.io/joe

#####=== Laravel ===#####

/bootstrap/compiled.php
.env.*.php
.env.php
.env