Repository navigation
Add support for querying relationship existence across databases to Eloquent #60173
Unanswered
sts-ryan-holton
asked this question in
Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
Hi 👋
I'm not sure whether this has been opened previously, but would appreciate the feedback on the idea to be implemented into the Laravel Framework.
We have a large web application that processes millions of records per day in MySQL.
Naturally, as a system grows, often is the case that new ideas and data storage solutions are implemented, as such, we decided to introduce a separate Postgres (Timescale DB) database for reporting and heavy log ingestion utilsing tpetry/laravel-postgresql-enhanced.
This means that we've set up another database connection to Postgres, and some models define a Postgres connection, others define a MySQL connection.
For the longest time, the official docs mention:
But, currently Laravel is able to support regular
withjoins across connections.It would be great if Laravel could add support for:
withWhereHaswhereHasTo the framework so we can do (where
Postmight be in MySQL and thecommentsrelationship in Postgres):UPDATE
Open PR was closed at this time #60177
All reactions