Saturday, April 15, 2017

How to manage Laravel controllers and views in separate Git repos

It seems to me that a large portion of projects have repeated components. For example most projects will have a User model, along with a UsersController and user views.

Is there any way to structure a project so that each of these is pulled from a Git repo?

I want to have separate repos for each (say a repo for Users, a repo for Forum, etc) so in each new Laravel project (lets all it ProjectA, which itself would also live in a repo) I can just git clone my_users_repo and have the latest users code. I would also need to commit this in the ProjectA repo.

Is this possible?



via zundi

Advertisement