protected function getErrorMessage($laravelRule, $attribute)
	{
		// getting user friendly attribute name
		$attribute = $this->getAttributeName($attribute);
		$message = Lang::get('validation.'.$laravelRule, ['attribute' => $attribute]);

		return ['data-msg-'.$laravelRule => $message];
	}
protected function getErrorMessage($laravelRule, $attribute)
	{
		// getting user friendly attribute name
		$attribute = $this->getAttributeName($attribute);
		$message = Lang::get('validation.'.$laravelRule, ['attribute' => $attribute]);

		return ['data-msg-'.$laravelRule => $message];
	}
protected function getErrorMessage ( $ laravelRule , $ attribute ) { // getting user friendly attribute name $ attribute = $ this -> getAttributeName ( $ attribute ) ; $ message = Lang :: get ( 'validation.' . $ laravelRule , [ 'attribute' => $ attribute ] ) ; return [ 'data-msg-' . $ laravelRule => $ message ] ; }
Sets error message

@return string
Sets error message