Skip to content

Commit

Permalink
mesaj default
Browse files Browse the repository at this point in the history
  • Loading branch information
filipac committed Mar 3, 2015
1 parent e2e3a9b commit 4eb8ec8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Laravel/CnpValidatorProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public function boot()
{
return Cnp::valid($value);
});
Validator::replacer('cnp', function($message, $attribute, $rule, $parameters)
{
$message = "Cnp-ul introdus nu este corect!";
return $message;
});
}

/**
Expand Down

0 comments on commit 4eb8ec8

Please sign in to comment.