title: Laravel 5 Form request validation with parameters
body: <p>I am using <strong>form request</strong> validation and there are some rules that needs external values as a parameters.</p>
  <p>Here are my validation rules for editing a business profile inside a form request class,</p>
  <pre><code>public function rules()
  {
      return [
          'name' =&gt; 'required|unique:businesses,name,'.$business-&gt;id,
          'url' =&gt; 'required|url|unique:businesses'
      ];
  }
  </code></pre>
  <p>I can use this on the controller by type hinting it.</p>
  <pre><code>public function postBusinessEdit(BusinessEditRequest $request, Business $business)
  {
      //
  }
  </code></pre>
  <p>But how to pass the <code>$business</code> object as a <strong>parameter</strong> to the <code>rules</code> method?</p>