composer require topthink/think-multi-app
-
Delete the original controller file (must be deleted)
-
Modify the configuration file to enable multi-application mode Modify the config/app.php file, if not, do not need to change
// enable multi-app 'auto_multi_app' => true
- Create an application php think build demo demo is the name of the application, which can be modified by yourself