Following is the link for the official Laravel recommendation of .gitignore
https://github.com/laravel/laravel/blob/master/.gitignore
This contains :
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
.phpunit.result.cache
I've the following confusion :
"/public/hot" when this will be used. did anybody has even seen the "hot" folder used inside the 'public' folder so far?
"/public/storage" when this will be used. did anybody have seen the 'storage' folder used inside 'public' so far?
As "/public/hot" & "/public/storage" are not an obvious part of laravel framework, why is this recommended to add in gitignore?
Why other public subfolders like "public/css/, public/js/, public/fonts/*" are not added above in the list as it would be generated based on "resource/" content.
"/storage/*.key" when this "key" extension file will be created?
Why other storage subfolder like "storage/framework/cache/, storage/framework/sessions/, storage/framework/views/, storage/logs/" are not added in above list ?
What is the best .gitignore list for Laravel 5.4 onwards?
I'd appreciate your thought. Thanks.
public/hot
is a temporary file used by webpack dev server.public/storage
is a symlink to storage/app/public
. See filesystem documentation for more info.
php artisan storage:link
public/hot
is only used during development and is created every time npm run hot
is ran. public/storage
is just a symlink and needs to be created on production and development environments alike.php artisan passport:keys
is one example of where they come from. See deploying passport for more info..gitignore
in the official repository is probably a pretty good starting point.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