protected function getDefaultErrorMessage($laravelRule, $attribute)
    {
        // getting user friendly validation message
        $message = $this->message()->getValidationMessage($attribute, $laravelRule);

        return ['data-msg-'.$laravelRule => $message];
    }
protected function getDefaultErrorMessage($laravelRule, $attribute)
    {
        // getting user friendly validation message
        $message = $this->message()->getValidationMessage($attribute, $laravelRule);

        return ['data-msg-'.$laravelRule => $message];
    }
protected function getDefaultErrorMessage ( $ laravelRule , $ attribute ) { // getting user friendly validation message $ message = $ this -> message ( ) -> getValidationMessage ( $ attribute , $ laravelRule ) ; return [ 'data-msg-' . $ laravelRule => $ message ] ; }
Gets default error message.

@param string $laravelRule
@param string $attribute
@return string
Gets default error message .