public function getErrors($key = null, $group = null)
    {
        return $this->validator->getErrors($key, $group);
    }
public function getErrors($key = null, $group = null)
    {
        return $this->validator->getErrors($key, $group);
    }
public function getErrors ( $ key = null , $ group = null ) { return $ this -> validator -> getErrors ( $ key , $ group ) ; }
Gets validation errors.

@param string $key
@param string $group

@return string[]
Gets validation errors .