Laravel App Directory
The app directory has the base code for the application. The app directory contains variety of directories like console,Http,providers etc. These directories are created by the make artisan command which we use to generate classes.
The directories inside app directory are:-
1.Broadcasting Directory:- All the broadcasting channels are stored in broadcasting Director. These channels are generated by make:model command. This directory doesn’t exist by default. It will be created when we create our first channel.
2.Console Directory:- The console directory contains all of the project artisian commands for the application. These commands are generated by using make:command command. This directory is also house for krenal.php where custom artisian commands are registered and tasks are defined.
3.Events Directory:-The event directory holds the events files that the laravel application may pop up. This directory doesn’t exist by default, but will be created by event:generate and make:event Artisian commands.
4.Exception Directory:-This directory holds all the exception handling files. The exception thrown by the application is stored in this directory. We can customize how the exceptions are logged or rendered by modifying the handler class in the directory.
5.Http directory:- This directory contains controllers,middlewares, and form requests. All of the logic to handle requests entering your application will be placed in this directory.
6.Jobs Directory:- This directory doesn’t exist by default. It will created by make:job Artisan command. The job directory holds all lineup jobs in this directory.
7.Listners Directory:- This directory doesn’t exist by default. It will created by event:generate or make:listeners Artisan command. This directory contains the classes that handle your events.
8.Mail Directory:- :- This directory doesn’t exist by default. It will created by make:mail Artisan command.This directory holds all the emails send by th e laravel project.
9.Notification Directory:- This directory doesn’t exist by default. It will created by make:notification Artisian command.This directory conatins all of the transactional notification that are sent by your application.
10.Policies Directory:- This directory doesn’t exist by default. It will created by make:policy Artisian command. This directory holds the different policies of your laravel project.
11.Providers Directory:- This directory is used for containing containing different service providers.
12.Rules Directory:- This directory doesn’t exist by default. It will created by make:rule Artisian command. The rules directory contains the custom validation rule objects for your application. Rules are used to encapsulate complicated validation logic in a simple object.