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 ?
I suggest you use controllers to define routing logic, so your routes.php file does not get complicated. You will avoid a lot of conflicts this way. You can read more here. Pasting an excerpt:
There is a silly way but fruitful::
include more as your need. Enjoy sharing codes /projects.
THanks
This is what Github is all about - collaboration between multiple developers.
There are many ways to handle this - but in general each developer can fork his own branch - make changes - then merge them back in.
You will expect conflicts on the file - but the conflicts should not be the same route - it should be different routes in the same file - so you can merge the conflict into the one route file