Laravel – Application Structure

 Root Directory 

The root directory of Laravel contains various folders and files as shown in the following figure.



  • app: This directory contains the core code of the application. 
  • bootstrap: This directory contains the application bootstrapping script. 
  • config: This directory contains configuration files of the application. 
  • database: This folder contains your database migration and seeds. 
  • public: This is the application’s document root. It starts the Laravel application. It also contains the assets of the application like JavaScript, CSS, Images, etc. 
  •  resources: This directory contains raw assets such as the LESS & Sass files, localization and language files, and Templates that are rendered as HTML. 
  • storage: This directory contains App storage, like file uploads etc. Framework storage (cache), and application-generated logs. 
  • test: This directory contains various test cases. 
  • vendor: This directory contains composer dependencies.

Comments