title: How to create Policies without parameters in Laravel 5.2?
body: <p>I am trying to create a project to add edit contacts.</p>
  
  <p>To restrict the user can add/edit their own contacts, So added policy ContactPolicy as below</p>
  
  <pre><code>&lt;?php
  
  namespace App\Policies;
  
  use Illuminate\Auth\Access\HandlesAuthorization;
  use App\User;
  use App\Contact;
  
  class ContactPolicy
  {
      use HandlesAuthorization;
  
      /**
       * Create a new policy instance.
       *
       * @return void
       */
      public function __construct()
      {
          //
      }
      public function before($user, $ability)
      {
          if ($user-&gt;isAdmin == 1) {
              return true;
          }
      }
  
      public function add_contact(User $user)
      {
          return $user-&gt;id;
      }
  
      public function update_contact(User $user, Contact $contact)
      {
          return $user-&gt;id === $contact-&gt;user_id;
      }
  }
  </code></pre>
  
  <p>And registered in AuthServiceProvider as below</p>
  
  <pre><code>protected $policies = [
          'App\Model' =&gt; 'App\Policies\ModelPolicy',
          Contact::class =&gt; ContactPolicy::class,
      ];
  </code></pre>
  
  <p>To restrict adding of contact by current user I added Gate in my controller function as below without passing parameters</p>
  
  <pre><code>if (Gate::denies('add_contact')) {
              return response('Unauthorized.', 401);
          }
  </code></pre>
  
  <p>Even if current user tries to add contact, it shows Unauthorized message.</p>
  
  <p>How will I solve this problem?</p>