title: Laravel Policies in Model and how to avoid authorization in particular views.
body: <p>I will try to explain. Im developing an Ecommerce application and in order to provide backend authorization I applied laravel Policies to a Model (product model). </p>
  
  <p>The problem resides when I tried to use the same product model in frontend views, where all users can see the products. </p>
  
  <p>Policies are applied to all the model no matter if the route view is protected and I cannot find the way to leave some views (eg: frontend>list products) retrieving information from model with no authorization policy.</p>
  
  <p>Eg: of the policy applied to View in backend:</p>
  
  <pre><code>public function view(User $user)
  {
      $method = (string)$this-&gt;ability;
      if ($user-&gt;hasRole($this-&gt;Model) === null) {
          return 0;
  
      }
      return $user-&gt;hasRole($this-&gt;Model)-&gt;$method;
  }
  </code></pre>
  
  <p>What I need is to create another public function in product policy that list products in frontend without requesting authorization to the user.</p>
  
  <p>thanks.</p>