Blame view
app/Support/ValidatorFactory.php
623 Bytes
e77200db5 Initial commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<?php namespace FootyRoom\Support; use Illuminate\Validation\Factory; class ValidatorFactory extends Factory { /** * @var array */ protected static $messages = [ 'min' => 'min', 'same' => 'same', ]; /** * Create a new Validator instance with terse error messages that only * contain the name of the failed rule. * * @param array $data * @param array $rules * * @return \Illuminate\Validation\Validator */ public function terse(array $data, array $rules) { return parent::make($data, $rules, self::$messages); } } |