vendredi 13 mars 2020

Multi laravel projects can use same vendors in one server?

I have built several websites using Laravel PHP framework. It is really awesome.

So I got one question about this case. 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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire