Laravel Folder Structure:
| Folder | Path | Uses |
|---|---|---|
|
app/Http/ |
All controller files are located here. |
|
app/Http/ |
All Middlewares are located here ex: Authenticate. |
|
app/ |
Convenient way to manage and work with fixed sets of values within application |
|
app/ |
You can define application Notification classes, basically used to call SMS/Email. |
|
app/ |
All applicaton Models are saved here, by using Models you can interact with database. |
|
database/ |
All Database related migrations. |
|
database/ |
All Database related seeders, you can make dummy data from seeders. |
|
routes/ |
You can add new route in routes/web.php or create api in routes/api.php. |
|
resources/ |
All assets or blade files here. |
|
/ |
Composer is a dependency management tool for PHP. |
Application Layout Structure:
| File(Custom Files) | Path | Uses |
|---|---|---|
|
resources/views/layouts/ |
Main View file skeleton prepared. |
|
resources/views/layouts/ |
Footer text for application front end prepared. |
|
resources/views/layouts/ |
Common css files placed here. |
|
resources/views/layouts/ |
Code to handle front end header. |
|
resources/views/layouts/ |
Code to handle sidebar navigation(links). |
|
resources/views/layouts/ |
Common JS files placed here. |
|
resources/views/layouts/ |
Code to show alerts on front end. |
Application Components:
| File(Custom Files) | Path | Uses |
|---|---|---|
|
resources/views/components/ |
Used to manage links. |
|
resources/views/components/ |
Image browsing button with view image. |
|
resources/views/components/ |
Code to handle buttion functionality. |
|
resources/views/components/ |
Code to handle Labels. |
|
resources/views/components/ |
Code to handle Text Box. |
|
resources/views/components/ |
Code to handle Input Box. |
|
resources/views/components/ |
Code to handle Dropdowns. |
Authentication Files:
| File(Custom Files) | Path | Uses |
|---|---|---|
|
resources/views/auth/ |
Login page code. |
|
resources/views/auth/ |
Forgot Password page code. |
|
resources/views/auth/ |
Reset Password Page code. |
Controller
app.blade.php