Level 122
use eloquent. It will use prepared statements.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello to all Laravel devs.
I have a $request->query('key'); how to prevent this from SQL injection like 1=1 or ;drop database -- etc..?
I have string rule for my query params but that ins't enough.
Any suggestions?
Thanks.
Please or to participate in this conversation.