protected function getValidErrors($firstOfAll = false)
    {
        return $firstOfAll ? $this->getValidation()->errors()->firstOfAll() : $this->getValidation()->errors();
    }
protected function getValidErrors($firstOfAll = false)
    {
        return $firstOfAll ? $this->getValidation()->errors()->firstOfAll() : $this->getValidation()->errors();
    }
protected function getValidErrors ( $ firstOfAll = false ) { return $ firstOfAll ? $ this -> getValidation ( ) -> errors ( ) -> firstOfAll ( ) : $ this -> getValidation ( ) -> errors ( ) ; }
Get validation errors.

@param bool $firstOfAll

@return array|\Rakit\Validation\ErrorBag
Get validation errors .