src/Foundation/AbstractValidator.php
public function assertValid(array $attributes)
    {
        $validator = $this->makeValidator($attributes);

        if ($validator->fails()) {
            throw new ValidationException($validator);
        }
    }
public function assertValid(array $attributes)
    {
        $validator = $this->makeValidator($attributes);

        if ($validator->fails()) {
            throw new ValidationException($validator);
        }
    }
public function assertValid ( array $ attributes ) { $ validator = $ this -> makeValidator ( $ attributes ) ; if ( $ validator -> fails ( ) ) { throw new ValidationException ( $ validator ) ; } }
Throw an exception if a model is not valid.

@param array $attributes
Throw an exception if a model is not valid .