Свойство | Тип | Описание | |
---|---|---|---|
$events | Illuminate\Contracts\Events\Dispatcher | ||
$rules | array | ||
$translator | Symfony\Component\Translation\TranslatorInterface | ||
$validator | Illuminate\Validation\Factory |
Метод | Описание | |
---|---|---|
__construct ( Illuminate\Validation\Factory $validator, Illuminate\Contracts\Events\Dispatcher $events, Symfony\Component\Translation\TranslatorInterface $translator ) | ||
assertValid ( array $attributes ) | Throw an exception if a model is not valid. |
Метод | Описание | |
---|---|---|
getMessages ( ) : array | ||
getRules ( ) : array | ||
makeValidator ( array $attributes ) : Illuminate\Validation\Validator | Make a new validator instance for this model. |
public __construct ( Illuminate\Validation\Factory $validator, Illuminate\Contracts\Events\Dispatcher $events, Symfony\Component\Translation\TranslatorInterface $translator ) | ||
$validator | Illuminate\Validation\Factory | |
$events | Illuminate\Contracts\Events\Dispatcher | |
$translator | Symfony\Component\Translation\TranslatorInterface |
public assertValid ( array $attributes ) | ||
$attributes | array |
protected makeValidator ( array $attributes ) : Illuminate\Validation\Validator | ||
$attributes | array | |
Результат | Illuminate\Validation\Validator |
protected Dispatcher,Illuminate\Contracts\Events $events | ||
Результат | Illuminate\Contracts\Events\Dispatcher |
protected TranslatorInterface,Symfony\Component\Translation $translator | ||
Результат | Symfony\Component\Translation\TranslatorInterface |