ValidatorFactory.php
623 Bytes
<?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);
}
}