How to structure a platform with sub apps in Laravel 4?

前端 未结 2 1328
傲寒
傲寒 2021-02-10 20:29

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

I\'m having tro

2条回答
  •  情话喂你
    2021-02-10 20:48

    You can use package feature, first of all you need to make a kernel package as your basic project and then extends 'sub projects' from your git repository, it's easy way, as Laravel introduction says:

    "Packages might be anything from a great way to work with dates like Carbon, or an entire BDD testing framework like Behat."

    With packages you can single out each feature on composer.json and load them one by one.

提交回复
热议问题