Application Structure

The Root folder of Laravel contains the following folders and files:

app The core code of the application.
Console Contains all the artisan commands
Events Events that the application can raise.
Exceptions The application exception handler and a good place to stick any exceptions thrown by the application
Http Controllers, filters and requests
Jobs Queable Jobs for the application
Listeners Handler classes for events.
Policies Various application policies
Providers Various service providers
bootstrap The application bootstrapping script
config Application configuration files
app.php Application config parameters
auth.php Authentication settings
broadcasting.php Broadcasting settings
cache.php Caching settings
database.php Database settings
filesystems.php Filesystems settings
mail.php Mailing settings
queue.php Queuing settings
services.php Services settings
session.php Session settings
view.php View settings
database Database migrations and seeds
public Document root of the application. This will start the Laravel application. Also contains the assets of the application like JavaScript, CSS, images, etc...
resources Contains raw assets like LESS and SASS files, localization and language files and templates rendered as views
storage Application storage like file uploads, cache and application generated log files
tests Contains various test cases
.env Environment settings for running the application (see notes below)
.env.example Sample that can be used as template for your own .env file

.env file

Laravel provides facility to run your application in different environment like testing, production etc. You can configure the environment of your application in the .env file of the root directory of your application. If you have installed Laravel using composer, this file will automatically be created.

In case you haven’t installed Laravel, you can simply rename the .env.example file to .env file.

Last update: November 3rd at 9:29am