How to structure a platform with additional applications in Laravel 4?

I need to develop several websites with common functions and streams, the only thing that will change dramatically is CSS, even HTML will be distributed.

I am having trouble building this structure in Laravel 4 since I am still starting in the framework.

  • I need to have a "superproject" that inherits all the "subprojects".
  • I need to be able to implement custom functions and threads in a particular "subproject".
  • I need to split each project in my own GIT repository.

I would like to get an opinion on who should already have created such a structure.

Thanks in advance!

+4
source share
2 answers

You can use the package function , first of all you need to make the kernel package as the main project, and then extend the "subprojects" from your git repository, this is an easy way, as the introduction to Laravel says:

"Packages can be a great way to work with dates like Carbon, or an entire BDD testing base like Behat."

In packages, you can highlight each function on composer.jsonand load them one at a time.

+4
source

Assuming a separate Git repository is required, one approach would be to have an application folder for each project, plus one for the main project. I.e:.

  • applications
  • Subapp1
  • Subapp2
  • ...

, , subapp. , . , , subapp. Git, , , .

.

, , , .

0

Source: https://habr.com/ru/post/1531014/


All Articles