Brief Description about Laravel App directory

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

2.Console Directory

3.Events Directory

4.Exception Directory

5.Http Directory

6.Jobs Directory

7.Listners Directory

8.Mail Directory

9.Notification Directory

10.Policies Directory

11.Providers Directory

12.Rules Directory

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.

shashank K
Latest posts by shashank K (see all)
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x