Laravel .gitignore Template
Laravel framework vendor directory, storage logs, cache, and .env files. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full GeneratorLaravel framework vendor directory, storage logs, cache, and .env files
### Laravel ###/vendor/node_modules/npm-debug.logyarn-error.log # Laravel 4 specificbootstrap/compiled.phpapp/storage/ # Laravel 5 & Lumen specificpublic/storagepublic/hot # Laravel 5 & Lumen specific with changed public pathpublic_html/storagepublic_html/hot storage/*.key.envHomestead.yamlHomestead.json/.vagrant.phpunit.result.cache/.phpunit.cache /public/build/storage/pail.env.backup.env.production.phpactor.jsonauth.json Raw Laravel .gitignore
Crawlable upstream source template/vendor/node_modules/npm-debug.logyarn-error.log # Laravel 4 specificbootstrap/compiled.phpapp/storage/ # Laravel 5 & Lumen specificpublic/storagepublic/hot # Laravel 5 & Lumen specific with changed public pathpublic_html/storagepublic_html/hot storage/*.key.envHomestead.yamlHomestead.json/.vagrant.phpunit.result.cache/.phpunit.cache /public/build/storage/pail.env.backup.env.production.phpactor.jsonauth.json Key Pattern Breakdown
Dependencies & Packages
Excludes installed package directories and third-party vendor files that should be restored via package managers.
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.