title: Create a custom Validation rule that accepts two input parameters
body: <p>I've created a custom Validation rule that accepts one input argument.</p>
  
  <pre><code>Validator::extend('dns', function($attribute, $host, $parameters)
  {
      return ($host !== gethostbyname($host));
  });
  </code></pre>
  
  <p>The rules</p>
  
  <pre><code>public static $rules = array(
      'nameserver'    =&gt; 'dns'
  );
  </code></pre>
  
  <p>I have created a new file called <em>validators.php</em> and <em>include</em> it in the <em>global.php</em> file in  order to be global.</p>
  
  <p>I want to pass two input arguments in order to make some more checks compare to each other.
  How can I succeed this?</p>