Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rondnounou's avatar

What's bootstrap folder ?

Hi! Anybody can explain me what's the bootstrap folder in laravel? and why it's use for ?

Thanks.

0 likes
2 replies
Talky's avatar

Just visit Laravel's Documentation:

The bootstrap directory contains files that bootstrap the framework and configure autoloading. This directory also houses a cache directory which contains framework generated files for performance optimization such as the route and services cache files.

Source: https://laravel.com/docs/5.4/structure#the-bootstrap-directory

2 likes
Rondnounou's avatar

Thanks ! But I don't really understand how cache works.

Please or to participate in this conversation.