I want to make 2 projects based on one database. Imagine a site like airbnb.com
. I want one project to be for "managers of hotels" that will add their supply on the website, and the other site to be a powerful search by location, name, and so,so on based on the same DB. There is a way how to achieve it?
It will not cause problems after deploying ?
Asked
Active
Viewed 1,833 times
-1

priMo-ex3m
- 1,072
- 2
- 15
- 29
-
7you can do this, go ahead. – Adam Kozlowski Dec 18 '17 at 08:48
-
First site for suppliers will interact with CRUD of app. The other app will be just a "search" from the first one's DB. Any recommendations, suggestions, probably issues? Thanks! – priMo-ex3m Dec 18 '17 at 09:10
-
You will just end up with a project that has a dependency on another project. Are you ok with that? Then you're done. – Amarnasan Dec 18 '17 at 09:14
-
Why two projects? The manager part is just a different view based on role to the same data? Do I miss anything? – common sense Dec 18 '17 at 09:58
-
That's the idea. I know that posting it all on one domen will be better, but... I didn't decide :) – priMo-ex3m Dec 18 '17 at 10:09
2 Answers
0
That would be fine given
- A table is maintained by one project only
- You never do php artisan migrate:fresh or other actions affecting the other projects´ tables.

ajthinking
- 3,386
- 8
- 45
- 75
-
1First site for suppliers will interact with CRUD of app. The other app will be just a "search" from the first one's DB. Any recommendations? – priMo-ex3m Dec 18 '17 at 09:09
0
This approach is not really recommended, instead adopt 1 DB for 1 application. If your app needs to connect on external DB, you can connect multiple DB with one single app.
Please see here:

4givN
- 2,936
- 2
- 22
- 51