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

Johny22's avatar

This action is unauthorized.

Hi, it has already happened to someone that after adding a resource to me, these are orders, the edit buttons are not displayed and when I want to go to the details order, I get 403 forbiden. What can be the problem?

{message: "This action is unauthorized.",…}
exception: "Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException"
file: "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php"
line: 385
message: "This action is unauthorized."
trace: [{file: "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php",…},…]

0 likes
1 reply
anilkumarthakur60's avatar

you may have created new request file make sure you reutnr true

public function authorize() {
 return true;
 }

Please or to participate in this conversation.