mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
15 lines
No EOL
676 B
Markdown
15 lines
No EOL
676 B
Markdown
---
|
|
title: 'HTTP response status can be customized when denying actions via Gates & Policies '
|
|
tweet_id: '1550466517061447682'
|
|
thread_slug: weekly-thread-2022-29
|
|
author_username: timacdonald87
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FXqQk8faIAAEExm.jpg'
|
|
created_at: 2022-07-22T13:03:18+00:00
|
|
slug: 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. |