---
title: "Comment by Hafiz Waleed Ahmed on \"Laravel Application Security Practices Developers Should Follow\" | Hashnode"
description: "Authorization is the section I'd stress most, because Laravel's defaults don't stop one user from changing an ID in the URL and reading another user's record. I"
url: "https://hashnode.com/posts/laravel-application-security-practices-developers-should-follow/6b05281ac9ec554266342db2/comment/6b0544fbf371553d4a362ad5"
---

[Discussion](https://hashnode.com/posts/laravel-application-security-practices-developers-should-follow/6b05281ac9ec554266342db2)

Comment [Laravel Application Security Practices Developers Should Follow](https://hashnode.com/posts/laravel-application-security-practices-developers-should-follow/6b05281ac9ec554266342db2)

[Hafiz Waleed Ahmed](https://hashnode.com/@hafizwaleedahmed5)

[1d ago](https://hashnode.com/posts/laravel-application-security-practices-developers-should-follow/6b05281ac9ec554266342db2/comment/6b0544fbf371553d4a362ad5)

Authorization is the section I'd stress most, because Laravel's defaults don't stop one user from changing an ID in the URL and reading another user's record. I'd back that up with policies on every model route and a feature test that logs in as user A and expects a 403 on user B's resource. For the debug page issue, a quick deploy check that APP\_DEBUG is false and that config is cached catches the most common slip.
