Boubou
2657
9
Laravel

Eloquent vs query builder, why?

Posted 1 year ago by Boubou

Hello,

I am not sure I yet understand why people use Eloquent and why others use the query builder. Apart that Eloquent seems easier to write, is there any major difference between the 2 please? I would like to process database transactions, I presume that in both eloquent and the query builder this can be done.

I would really like to hear from someone who has been using both for quite some time as I do not know if I should start my first project with Eloquent or the Query builder.

Writing queries for me is not a problem, do I still need Eloquent?

Thank you,

Please sign in or create an account to participate in this conversation.