Project Structure
Overview
.
├───.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:
src/
: Contains the application source code (Laravel app directory).config/
: Contains configuration files. (Laravel config directory)database/
: Contains database files. (Laravel database directory)public/
: Public directory containing static files. (Laravel public directory)routes/
: Contains route definition files. (Laravel routes directory)storage/
: Contains storage files, including log files and other files. (Laravel storage directory)
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)