Using Laravel 5.x. or 5.1.x
What would be the basic recommended configuration for the .hgignore file?
Pulling from the .gitignore this is what I have:
syntax: glob
.env
.gitignore
.gitattributes
.idea
vendor/
node_modules/
Homestead.yaml
Homestead.json
Online I see for version 4 something about /bootstrap/compiled.php
Should I include /bootstrap/cache ?
I use negative lookahead to include the empty folder structure:
## Laravel specific
^\.env$
^vendor
## General
\.DS_Store$
[Tt]humbs\.db$
## Keep these folders, but ignore their content
^bootstrap/cache/(?!\.gitignore).+$
^storage/logs/(?!\.gitignore).+$
^storage/app/(?!\.gitignore).+$
^storage/framework/views/(?!\.gitignore).+$
^storage/framework/sessions/(?!\.gitignore).+$
^storage/framework/cache/(?!\.gitignore).+$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With