-1

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 ?

priMo-ex3m
  • 1,032
  • 2
  • 13
  • 27

2 Answers2

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
  • 4,120
  • 5
  • 36
  • 67
  • 1
    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? – 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:

multiple-database-connections-in-the-same-laravel-project

use-multiple-database-in-laravel

4givN
  • 2,537
  • 1
  • 20
  • 45