getData(); $min_value = $data[$min_field]; return $value > $min_value; }); Validator::replacer('greater_than_field', function($message, $attribute, $rule, $parameters) { return str_replace('_', ' ' , 'The '. $attribute .' must be greater than the ' .$parameters[0]); }); } /** * Register any application services. * * @return void */ public function register() { // } }