Skip to content

Project Structure

Overview

md
.
├───.vscode
├───app
│   ├───config
│   ├───database
│   │   ├───factories
│   │   └───seeders
│   ├───declare
│   ├───routes
│   └───src
│       ├───console
│       │   └───commands
│       ├───http
│       │   ├───controllers
│       │   ├───middleware
│       │   ├───requests
│       │   └───resources
│       ├───models
│       └───providers
├───dist
└───storage
    └───logs

Details

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

  • app/: Contains the application source code.
  • dist/: Contains built files for production deployment.
  • storage/: Contains storage files like logs, cache, etc.

/app

app is the directory containing the application source code.

./config

config is the directory containing configuration files for the application, allowing you to customize settings such as database connections, API information, and other parameters.

./database

database is the directory containing database files, including migrations, seeders, and other database-related files.

./declare

declare is the directory containing custom TypeScript declarations for the application.

./routes

routes is the directory containing route definition files for the application, allowing you to define URLs and corresponding actions.

./console

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

./src

src is the main directory containing the application source code, where business logic is implemented, including components such as models, controllers, middleware, and providers.

/dist

dist is the directory containing built files for production deployment. This directory is typically created after running the build command and should not be edited directly.

/storage

storage is the directory containing storage files such as logs, cache, and other temporary files. This directory helps manage application data efficiently and securely.