1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/http-response-status-can-be-customized-when-denying-actions-via-gates-amp-policies.md
Samuel Štancl cc3667933a Week 29/2022
2022-07-22 16:49:28 +02:00

676 B

title tweet_id thread_slug author_username images created_at slug
HTTP response status can be customized when denying actions via Gates & Policies 1550466517061447682 weekly-thread-2022-29 timacdonald87
https://pbs.twimg.com/media/FXqQk8faIAAEExm.jpg
2022-07-22T13:03:18+00:00 http-response-status-can-be-customized-when-denying-actions-via-gates-amp-policies

🔐🧵 I added a small, but pretty nice, security enhancement in Laravel v9.20.0

When denying actions via Gates & Policies in Laravel, you can now customise the HTTP response status that is returned

This allows you to deny access, while hiding the existence of your resources.