-
-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Description
When I create a policy that denies with a specific message, can we return it some way ? So we'll display it in our front for our end users.
Example code :
- Create a policy
- Deny an access like this :
Response::deny('You must be an administrator.');orResponse::deny('You need to do another action before doing this.');(https://laravel.com/docs/12.x/authorization#gate-responses)
Metadata
Metadata
Assignees
Labels
No labels