如何在Laravel 4.2中为多名开发人员使用git路由 [英] How could I use one route with git for multiple developers in Laravel 4.2

查看:66
本文介绍了如何在Laravel 4.2中为多名开发人员使用git路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只有一条路由 app/routes.php ,我正在使用 git/git-hub 与一些开发人员共享我的项目.因为他们可以一起工作.但是问题在于:每个使用相同的 routes.php 文件进行路由的人,以及当他们在git中 push/pull 时,此 routes.php 文件都会发生冲突.每时每刻.

I have only one routes app/routes.php, I am using git /git-hub for sharing my projects with some developers. Cause they can work together. But problem is that : every one using same routes.php file for routing and when they push/pull in git this routes.php file conflicts all the time.

是否可以为同一项目中的不同开发人员设置路由?

Is there any way to set routes for different developer in same project ?

推荐答案

有一种愚蠢的方法,但有成果::

There is a silly way but fruitful::

  1. 创建routes_demo.php ::演示开发人员可以在这里工作
  2. 在您的主要routes.php中包含routes_demo.php

根据需要添加更多内容.享受共享代码/项目.

include more as your need. Enjoy sharing codes /projects.

谢谢

这篇关于如何在Laravel 4.2中为多名开发人员使用git路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆