Property | Type | Description | |
---|---|---|---|
$events | Illuminate\Contracts\Events\Dispatcher | ||
$rules | array | ||
$translator | Symfony\Component\Translation\TranslatorInterface | ||
$validator | Illuminate\Validation\Factory |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return | Illuminate\Validation\Validator |
protected Dispatcher,Illuminate\Contracts\Events $events | ||
return | Illuminate\Contracts\Events\Dispatcher |
protected TranslatorInterface,Symfony\Component\Translation $translator | ||
return | Symfony\Component\Translation\TranslatorInterface |