After the composer package is loaded, the development environment is normal, and an error is reported when pushed to the server (git-submodule)

After the composer package is loaded, the local development environment can be used, and it is pushed to the server to report the class not found error. This situation is generally because there is a .git directory in the loaded composer package directory, and git recognizes it as a submodule.
The solution is to remove it, push it to the server, then re-load it with composer require, delete the .git directory under the package, and then push it to the server.

Guess you like

Origin blog.csdn.net/wang740209668/article/details/110531775