The vender folder is the same when multiple laravel projects are deployed. How to share a vender folder?
Or to be more thorough, if two projects only have different env files (databases are separate) and public folders, and the contents of other folders are the same, how can they share these same files and folders when deployed on centos? Woolen cloth? Use soft connection?
You answered it yourself. Soft link. Why are you still asking?
In fact, the place where the vendor is specified in the project is loaded in index.php
require __DIR__.'/../bootstrap/autoload.php';
Just change it here orz