When you install Laravel, a rich directory structure is created in your folder. At the beginner’s level, we will discuss a few important points of each directory in Laravel.
- app – Has Http folder – has all controllers, models & middlewares (Middlewares are guard for your applications)
- bootstrap – is not a bootstrap framework but its meaning is starting quickly means all cache files are there
- config – all configurations are there but at this level, we will not touch this like mail configuration, cache configuration, etc
- database – Managing tables from the migration directory here
- public – has .htaccess file, robots.txt, and index file which runs first in the application
- resources – has a views folder holding all blade template files. has CSS, JS files, and language files
- routes – has web.php has all routes defined for the website & api.php defines all routes for API
- storage – manage all files to download or upload
- tests – use to define custom test cases but not for beginners
- vendors – all package files which are manging by the composer
- .env – This file has all configurations like connection details, site name, aws details, Google id, secret, password, etc.
- composer.json – hold all packages we hold on the website
- readme.md – for the developers to describe the flow and functions