The image is showing the files and directories of laravel. It is automatically created when we create project using composer or laravel installer.
Let’s we overview these files and directories
first we understand about files
This is environment file where we put credential(username password and other information) which will use in project. Ex. Database username, password, database name , any third party creds like Mailgun,redis etc.
We can change the path of this file for more security purpose. go to vendor\vlucas\phpdotenv\src\Loader and change it in constructor.
Note: we must never commit this file in bitbucket or github. You may check is already mentioned in gitignore file.
It just hint about git. Don’t think more about this file.
Here we put file name which will not commit in bitbucket or git repos.
when we run php artisan command in terminal actually we trigger this file only. It run The Artisan Application.
This is the configuration file that specifies all dependencies or dependencies for development purpose
It lock the version of dependencies.So, In future when we’ll install dependency, Intall same version.
This is relatated to frontend dependency. you may find the which frontend dev dependencies (with version) is installed. Ex.vue,jquery etc.
This file allows us to emulate Apache’s “mod_rewrite” functionality from the built-in PHP web server.
It compiles scss or less or js files.
This directory contain the core files of composer so no need to worry about this and here we don’t create files/folders write code in existing files.
This directory contain the test code of our project for testing purpose.
It stores logs, files based session and other thing. we don’t more worry about this folder.
Here we can register API routes for our application.
Here we may register all of the event broadcasting channels that our application supports.
Here we may define all of our Closure based console commands and run on terminal. ex. php artisan inspire or php artisan foobar etc.
we can register web routes for our application. ex. Route::get(‘/’,’RegisterController@index’); Route::post(‘/register’,’RegisterController@register’);