[[toc]]
The default file structure can make you better start project advancement, and you can also add new folders freely, but do not modify the default folders.
app
contains the core code of the program. Almost all the logic in the program will be in this folder.
The bootstrap
directory contains the framework startup file app.go
.
The config
directory contains all configuration files of the application. It is best to browse through these files and familiarize yourself with all the available options.
The database
directory contains database migration files.
The public
directory contains some static resources, such as images, certificates, etc.
The resources
directory contains your views as well as your raw, un-compiled assets such as CSS or JavaScript.
The routes
directory contains all the route definitions of the application.
The storage
directory contains the logs
directory, and the logs
directory contains the application log files.
The tests
directory contains your automated tests.
The console
directory contains all the custom Artisan
commands of the application, and the console boot file kernel.go
, which can be registered in this file Task Scheduling
The http
directory contains controllers, middleware, etc., and almost all requests that enter the application via the Web are processed here.
The grpc
directory contains controllers, middleware, etc., and almost all requests that enter the application via the Grpc are processed here.
The models
directory contains all data models.
The providers
directory contains all Service Providers in the program. The service provider guides the application to respond to incoming requests by binding services, registering for events, or performing any other tasks.