Replies: 1 comment 2 replies
-
You mean something like this? https://habib-cst.medium.com/laravel-read-write-connections-use-multi-database-2f95d358edb6 There's also https://github.com/calebporzio/sushi, which leverages the power of Eloquent using arrays. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the process of business development, it's common to fetch data through APIs while also desiring to leverage the rich features of an ORM (Object-Relational Mapping) framework. To achieve this, data is often manually initialized as instances of an ORM. However, existing ORM frameworks are tightly coupled with databases. I'm wondering if it's possible to split the ORM into two fundamental classes: one that handles database connections and another that focuses solely on data operations without the need for a database connection. I'm curious to hear what others think about this approach or if there are better suggestions.
Beta Was this translation helpful? Give feedback.
All reactions