P
P
pavlukpro2020-02-12 21:02:06
Laravel
pavlukpro, 2020-02-12 21:02:06

How to implement custom databases for Laravel application?

There is an application that has the following architecture:
5e443c69681af305895174.jpeg

How to make the list of settings and accesses to Fleets stored in a shared database. When requesting api.crm.com/fleet7/..., the database for fleet7 in the Laravel application became the main connection to the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-02-20
Nekhamkin @SergeN

In the application config, you can also configure several connections, and depending on the route, automatically switch to the connection that is required. That. All settings will be in one place. You can put them in the database, but why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question