php – Multi laravel projects can use same vendors in one server?-ThrowExceptions

Exception or error:

Let’s say we use addon domains in cpanel.

We will be able to put many laravel projects in one cpanel accounts as following structure.

- Project 1
  * app
  * bootstrap
  ...

  * public
  * vendor
  ...

- Project 2
  * app
  * bootstrap
  ...

  * public
  * vendor
  ...

 .....

We can point domains to public directory of each project.
I just wondered if we can use same vendor directory for all projects.
Of course, we should assume all projects used same packages.

I think we include autoload.php in index.php file of public directory.
If we arrage project structure well, is it possible to use same vendor for all projects?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *