Skip to content

Project Structure

Overview

md
.
├───.vscode
├───config
├───database
├───public
├───routes
├───src
│   ├───console
│   │   └───commands
│   ├───http
│   │   ├───controllers
│   │   ├───requests
│   │   └───resources
│   └───providers
└───storage
    └───logs

Details

Laratype is based on the Laravel project structure with the following main directories:

1. /src

src is the directory that contains the application source code, including components such as controllers, models, and views.

1.1 ./console

console is the directory that contains custom startup commands for the application. (The Console Directory)

1.2 ./http

http is the directory that contains HTTP-related components, including controllers, requests, and resources. (The Http Directory)

1.3 ./providers

providers is the directory that contains the application's service providers. (The Providers Directory)

2. /config

config is the directory that contains configuration files for the application, allowing you to customize settings such as database connections, API information, and other parameters. (The Config Directory)

3. /database

database is the directory that contains database files, including migrations, seeders, and other database-related files. (The Database Directory)

4. /public

public is the public directory containing static files such as images, CSS, and JavaScript. This is where users can access the application's static resources. (The Public Directory)

5. /routes

routes is the directory that contains route definition files for the application, allowing you to define URLs and corresponding actions. (The Routes Directory)