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