Support the ongoing development of Laravel.io →
Database Eloquent

Hi all,

It just a quick question about Eloquent and how it handles input data.

The query builder as quoted on the doc's uses bindings.

Note: The Laravel query builder uses PDO parameter binding throughout to protect your application against SQL injection attacks. There is no need to clean strings being passed as bindings.

Does Eloquent use bindings??

Thanks

Gav.

Last updated 2 years ago.
0

Eloquent is build on-top of the query builder, so yes :)

Last updated 2 years ago.
0

iWader said:

Eloquent is build on-top of the query builder, so yes :)

Thought it was, but thanks any for your answer!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

minerbog minerbog Joined 15 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.