Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

arthur's avatar

Protect URL from SQL Injection, XSS

Hai everyone I want to protect my url article from sql injection, ex: http://example.com/blog/velit-voluptatibus-excepturi-velit-cum and when I add ' and then errors

NotFoundHttpException in Handler.php line 102:
No query results for model [App\PostModel].

Please give suggestion to protect my url

0 likes
4 replies
d3xt3r's avatar

If you using standard laravel methods, you are protected against sql injection ... just take precaution with Db raw methods and always use parameter binding ...

Please or to participate in this conversation.