title: Laravel 5.8 send parameters to authorize method FormRequest Class
body: <p>I have <code>update</code> and <code>store</code> method like this</p>
  
  <pre><code>public function update(ContactRequest $request)
  {
     if (Auth::user()-&gt;can('edit_contact'))
           $request-&gt;update();
     else 
          return $this-&gt;accessDenied();
  }
  public function store(ContactRequest $request)
  {
     if (Auth::user()-&gt;can('add_contact'))
           $request-&gt;store();
     else 
          return $this-&gt;accessDenied();
  }
  </code></pre>
  
  <p>and <code>authorize</code> in <code>FormRequest</code> class</p>
  
  <pre><code>public function authorize()
  {
      return   \Gate::allows('test', $this-&gt;route('contact'));
  }
  </code></pre>
  
  <p>I want to pass permission name to <code>authorize</code> method like this:</p>
  
  <pre><code>public function authorize($permissionName)
  {
      if (Auth::user()-&gt;can($permissionName))
            return   \Gate::allows('test', $this-&gt;route('contact'));
  }
  </code></pre>
  
  <p>and in controller like this</p>
  
  <pre><code>public function update(ContactRequest $request)
  {
       $request-&gt;update('edit_contact');
  }
  public function store(ContactRequest $request)
  {
       $request-&gt;store('add_contact');
  }
  </code></pre>