A
A
Alexander Gorsky2014-06-29 03:30:14
Laravel
Alexander Gorsky, 2014-06-29 03:30:14

How to make several applications with a common database and models on Laravel?

How, on the basis of one installation of the framework, to make several separate applications using a single database, the same models, but with different controllers and views?
It is clear that it is not difficult to deploy several copies of the framework, connect them to a common database, and keep the models under version control, but this option seems too clumsy.
You can also, say, override the settings by domain (similar to local and production), but they will only affect the paths to the view files, but I would like to separate the controllers as well.
In general, there is no solution yet, and it is very interesting, who decides how to solve this issue for himself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zTrue, 2014-07-01
@alcanoid

I would try to connect different routers in app/route.php depending on the domain, and there already routers will connect different controllers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question