title: Laravel Gate resource with policy not existing
body: <p>I am trying to implement Policies in my project and I have a custom method <code>askFriend</code> that I want to add to my <code>UserRelationPolicy</code>.</p>
  
  <p>So I implemented in my UserRelationPolicy the askFriend method but when trying to call it from the <code>UserRelationPolicy@askFriend</code> I asked myself how to call it from this method.</p>
  
  <p>Something like <code>$this-&gt;authorize('askFriend', $friend);</code> but it was not working, kind of ignoring it at all. So I searched further in the documentation and found that I could bind with a Gate method the specific method in the <code>UserRelationPolicy</code> to a resource name like this :</p>
  
  <pre><code>Gate::resource('userrelation', 'UserRelationPolicy', [
      'userrelation.askfriendrelation' =&gt; 'askFriendRelation'
  ]);
  </code></pre>
  
  <p>You can find the representation here : <a href="https://laravel.com/docs/5.4/authorization#writing-gates" rel="nofollow noreferrer">Documentation Writing Gate</a></p>
  
  <p>When I try to execute this code I get the following error : </p>
  
  <pre><code>Call to undefined method Illuminate\Auth\Access\Gate::resource()
  </code></pre>
  
  <p>And nothing more. The Resource method doesn't seem to exist at all. After many search, trying to include every <code>Gate</code> in the header. Trying to call it staticly or with an instance. Nothing work and the method is nowhere near to be found...</p>
  
  <p>Is it something forgotten ? How can I call a custom method from a controller in a policy class ?</p>