当前位置:网站首页>Laravel document sorting 11. System architecture

Laravel document sorting 11. System architecture

2022-06-25 04:19:00 Angry devil

Preface :Laravel Document sorting , Only for record , Nothing else .


The root directory
-app   The core code of the application
-bootstrap   The framework starts and automatically loads the set file , And cache Folder , The file generated by the framework startup optimization .
-config   All configuration files
-database   Database migration and data populating files
-resources   View 、 Raw resources and language packs
-storage   The compiled blade Templates , file-based session、 File cache and other files generated by the framework
-app   Store any file that the application can use
-framework   Save the file and cache generated by the framework
-logs   Store log files
-test   Contains automated test files

-vendor composer Installed dependent modules

App Under the table of contents
console、http   Provide API Go to the heart of the application , They are a simple way to issue commands to applications .

-console   All of the Artisan command
-http   Include controller 、 Middleware and requests
-jobs   Queue tasks that an application can perform
-events   Place event classes . Functions here , When the specified action occurs , Notify you of other parts of the app , flexible , decoupling
-listeners   The event handling class . Receiving events , Logic events
-exceptions   Contains exception handling for the application , It is also a good place to store exceptions thrown

Be careful :app Many classes in the directory can be accessed through artisan Command to generate , View all available commands php artisan list make

modify App Catalog name
php artisan app:name  NewApp
 

原网站

版权声明
本文为[Angry devil]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210535177520.html