Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Directory structure in Laravel

# The root directory

 The Directory app


 The Directory bootstrap
 The Directory config
 The Directory database
 The Directory public
 The Directory resources
 The Directory routes
 The Directory storage
 The Directory tests
 The Directory vendor

The Directory app


Contains the core code of the application. Almost all the classes in application will be in
this directory.

The Directory bootstrap.


Contains the file which bootstrap the framework. It also houses a directory which
contains directory generated files for performance optimization.

The Directory config


As the name implies, contains all the application’s seeds.

The Directory database


Contains database migrations, model factories, and seeds.

The Directory public


Contains file index.php. which the entry point for all requests entering your application
and configures autoloading
The Directory resources
The resources directory contains your views as well as your raw, un-compiled assets
such as CSS or JavaScript.

The Directory routes


The routes directory contains all of the route definitions for your application. By default,
several route files are included with Laravel: web.php, api.php, console.php, and
channels.php.

The Directory storage


The storage directory contains your logs, compiled Blade templates, file-based sessions,
file caches, and other files generated by the framework. This directory is segregated into
app, framework, and logs directories.

The Directory tests


The tests directory contains your automated tests. Example PHPUnit unit tests and
feature tests are provided out of the box. Each test class should be suffixed with the
word Test.

The Directory vendor


The vendor directory contains your Composer dependencies.

You might also like