Eloquent has to convert to normal SQL at runtime.
Active record is strong at helping with relations.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
To me, sometimes it is easier to write a simple sql query versus creating an eloquent call for the same result.
For example if I need to return just a company name and id form Company table, but the results will filtered where the condition is met ~3 joints deep.
Are there certain benefits using eloquent, is it safer, faster or because of some other benefits..? I think eloquent sometimes can be even slower, because it will be running multiple queries to get the same/simple results.
What do you guys think?
Please or to participate in this conversation.