Created
September 2, 2017 09:22
-
-
Save FrankFlow/e40d7488cd3720a1257b472e6b3510e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Contracts\Validation\ImplicitRule; | |
| class MiaValidationRule implements ImplicitRule | |
| { | |
| public function passes($attribute, $value) | |
| { | |
| return $value > 10; | |
| } | |
| public function message() | |
| { | |
| return ':attribute è necessario più denaro'; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment