title: Errors "This action is unauthorized." using Form Request validations in Laravel 5/6/7/8/9
body: <p>I make some gate like this:</p>
  
  <pre class="lang-php prettyprint-override"><code>Gate::define('update-post', function  ($user, Post $post) {
      return $user-&gt;hasAccess(['update-post']) or $user-&gt;id == $post-&gt;user_id;
  });
  </code></pre>
  
  <p>I checked my database and it has update-post access and the user id is same as in the post. but I got:</p>
  
  <blockquote>
    <p>This action is unauthorized.</p>
  </blockquote>
  
  <p>errors. so am I do some mistake here? thanks.</p>