How to understand how the construction and execution of both query builder and eloquent works?
Dig around the related Laravel codebase.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How to understand how the construction and execution of both query builder and eloquent works?
I am making a package so that elastic search behaves like a sql DB and that the eloquent and query builder utility is not lost.
I tried to base myself on the jenssegers/laravel-mongodb package but the truth reached a point where I got lost because I can't find how it ends up building the queries and extending the functionality of query builder and eloquent
I really appreciate your help. If you have any documentation that I can study to continue advancing with this driver that I am making, it will be of great help.
I leave the link of the project.
jenssegers/laravel-mongodb
https://github.com/jenssegers/laravel-mongodb
this my package
Please or to participate in this conversation.