Join my Laravel for REST API's course on Udemy 👀

Fix the `403 This Action Is Unauthorized` error in Laravel

July 24, 2022  ‐ 1 min read

When submitting a form, or sending an POST, PUT or PATCH request you may encounter a Laravel error page saying:

403 | THIS ACTION IS UNAUTHORIZED.

As the error says, this means the user isn't authorized to make the request.

If you are using a custom Form Request class, this is probably the place to look. Make sure that the authorize() method you'll find there returns true.

<?php
public function authorize()
{
    return true;
}