Multiple applications / projects with one Laravel 4 installation

In the past, I worked with laravel 3 and used a project structure in which several applications could use the same framework installation. now in laravel 4 i agree if this is still possible. since bootstrap/autoload.php requires vendor/autoload.php (and so on ...), different applications must use the same startup files from the vendor directory, right? I think this will be a big performance issue, because different applications may have different requirements, different models for working, etc. Am I thinking correctly or is it possible to use one installation /vendor/ for several applications without the need to share startup files?

to explain my needs: I would like to run different applications (each application with a different domain and home directory) that use the same database and some models. but the requirements of each application will be very different.

is there any solution? I tried it from the moment of release, but did not find a practical way.

+7
source share
2 answers

Have you tried http://laravel.com/docs/routing#sub-domain-routing ?

Can you create a route group and assign a filter function to this route group to perform specific startups?

+1
source

How about modifying bootstrap/autoload.php and vendor/autoload.php to load autorun materials for each project into some subdirectory structure in vendor/composer/ .

Not sure how to change the composer to create such project startup directories. Maybe you need to change the composer?

+1
source

All Articles