private function getFormattedErrors($name)
    {
        if (!$this->hasErrors($name)) {
            return '';
        }

        $errors = $this->session->get('errors');

        return $errors->first($this->transformKey($name), '<div class="invalid-feedback">:message</div>');
    }
private function getFormattedErrors($name)
    {
        if (!$this->hasErrors($name)) {
            return '';
        }

        $errors = $this->session->get('errors');

        return $errors->first($this->transformKey($name), '<div class="invalid-feedback">:message</div>');
    }
private function getFormattedErrors ( $ name ) { if ( ! $ this -> hasErrors ( $ name ) ) { return '' ; } $ errors = $ this -> session -> get ( 'errors' ) ; return $ errors -> first ( $ this -> transformKey ( $ name ) , '<div class="invalid-feedback">:message</div>' ) ; }
Get the formatted errors for the form element with the given name.

@param  string $name
@return string
Get the formatted errors for the form element with the given name .