Laravel provides clean and easy to understand configurable application directory Structure. After installing Laravel successfully in root folder you will find below directories or files that are used to create small to large scale PHP Projects using Laravel Framework.
App Folder is one of major folder/directory in Laravel Framework, In Laravel Most of logics are written in App folder. This folder/directory contains the following folders.
The bootstrap directory of Laravel contains files are used for bootstrapping and configuring Laravel Framework itself. This directory also contains a cache directory which holds all framework generated files for performance optimization and
This directory contains all configuration related files of Laravel Framework. In this directory consist of below files
Laravel's Database Directory is used to keep your database migrations and seeds. If you are going to use SQLite Database, then you can also use this directory to hold an SQLite DB.
The public directory of Laravel consists of a file named index.php.In Laravel this file is an entry point for your application. This directory also holds your public assets like images, js, CSS files.
Laravel's Resources directory contains all view files oof your application. This directory also holds your language files
The routes directory of Laravel contains all of the routes of your applications. web.php, api.php, console.php, and channels.php are default routes files that are included in Laravel 5.5
The storage directory of Laravel contains all of your compiled blade files, sessions files, file caches, and other files generated by the framework.
The storage/app/public is available for storing user-generated files, such as profile image, product images, etc
The tests directory contains all of your automated tests
The vendor directory contains Composer dependencies related files of your application.
This post is submitted by one of our members. You may submit a new post here.
Laravel interview Questions © 2019 - Designed by PSD to HTML