I have two Laravel projects, each with its own repository:
sresth.com – This project serves the user-facing part of the website.
sresthadmin.com – This project serves the admin panel.
I want to merge these two projects into a single Laravel project with the following structure:
The user-facing part should remain accessible via sresth.com.
The admin panel should be accessible via sresth.com/admin.
Both projects are currently in separate repositories. I’m looking for the best approach to merge them into one project and one repository without losing any functionality or data. How can I achieve this?
Here are a few specific concerns:
How should I structure the directories and routes for the admin panel within the merged project?
How do I handle merging the environment configuration files (.env)?
What’s the best way to manage potential conflicts, such as overlapping routes, models, or migrations?
Any advice or step-by-step guidance would be greatly appreciated!