Laravel file structure

Laravel File structure

In this lesson I will talk about the some important file structure of Laravel for beginner.  

App folder contains the model and controller logic.
The controllers will go under the Http > Controllers folder and models will go under the app folder itself or you can create another folder inside app folder but make sure to declare it properly when you use it.  
Config folder contains all your related configuration that you can use later on.  
Databases folder is where all your database movement will go, migrations and seeding.
Public folder is where all the files in here is can be view by all users or public.
Then resources folder is where you can put your views or user interface.
For the routes folder, web.php file is where your route will be available.
And for storage, you can save or upload via your web application and save and access it here.
Env file contains some default configuration of your website, example app name, database config or mail configuration.

For the detailed you can go to laravel website documentation or you can ask your question at the comment below.

Next Topic: How to connect Laravel to Git source control

Comments