Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Surt's avatar
Level 1

Eloquent for hybrid db mongo-elastic

Hi all,

I already know about https://github.com/jenssegers/laravel-mongodb wich lets you use mongo as the eloquent ORM. But I'm looking for something one step ahead, similar to https://github.com/mongoosastic/mongoosastic in node.js

Mongoosastic is an extension for Mongoose, a node.js ORM for mongo, wich "automagically" manages 2 connections (mongo and elastic) and syncs the data. When using search over the ORM it searchs on the elastic data and returns results, allowing you to take the mongo documents.

I know that it is doable (wich great effort), but I was wondering if there is something similar, even not using eloquent, but for php.

Thanks ;)

0 likes
1 reply
Surt's avatar
Surt
OP
Best Answer
Level 1

I already saw it. A mix between eloquent for mongo + scout with an elasticsearch driver.

1 like

Please or to participate in this conversation.