title: Creating Laravel authorisation policy using something either than 'user->id'
body: <p>I would like to create a Laravel Authorisation Policy, however rather than checking the <code>user-&gt;id</code> I would like to check the related users Business model (like <code>$user-&gt;business()-&gt;id</code>)</p>
  
  <p>I've tried using the following in my OrderPolicy but it does not work.</p>
  
  <p><strong>OrderPolicy</strong></p>
  
  <pre><code>class OrderPolicy
  {
      ....
      public function edit(User $user, Order $order)
      {
          if ($user-&gt;business()-&gt;id === $order-&gt;business_id) {
              return true;
          }
      }    
  }
  </code></pre>
  
  <p><strong>Blade</strong></p>
  
  <pre><code>...
  @can('edit', $business-&gt;orders())
  Edit Link
  @endcan
  ...
  </code></pre>
  
  <p>Could someone show me how I could do this correctly?</p>