public function validationException(ValidationException $exception)
    {
        $this->jsonApiResponse->setStatus(422);
        $this->jsonApiResponse->setErrors($this->jsonApiFormatErrorMessages($exception));
    }
public function validationException(ValidationException $exception)
    {
        $this->jsonApiResponse->setStatus(422);
        $this->jsonApiResponse->setErrors($this->jsonApiFormatErrorMessages($exception));
    }
public function validationException ( ValidationException $ exception ) { $ this -> jsonApiResponse -> setStatus ( 422 ) ; $ this -> jsonApiResponse -> setErrors ( $ this -> jsonApiFormatErrorMessages ( $ exception ) ) ; }
Assign to response attribute the value to ValidationException.

@param  ValidationException $exception
Assign to response attribute the value to ValidationException .