src/Services/Validator.php
protected function translator( $key, $rule, $attribute, array $parameters )
	{
		$strings = [];//glsr_resolve( 'Strings' )->validation();

		$message = isset( $strings[$key] )
			? $strings[$key]
			: false;

		if( !$message )return;

		$message = str_replace( ':attribute', $attribute, $message );

		if( method_exists( $this, $replacer = "replace{$rule}" )) {
			$message = $this->$replacer( $message, $parameters );
		}

		return $message;
	}
protected function translator( $key, $rule, $attribute, array $parameters )
	{
		$strings = [];//glsr_resolve( 'Strings' )->validation();

		$message = isset( $strings[$key] )
			? $strings[$key]
			: false;

		if( !$message )return;

		$message = str_replace( ':attribute', $attribute, $message );

		if( method_exists( $this, $replacer = "replace{$rule}" )) {
			$message = $this->$replacer( $message, $parameters );
		}

		return $message;
	}
protected function translator ( $ key , $ rule , $ attribute , array $ parameters ) { $ strings = [ ] ; //glsr_resolve( 'Strings' )->validation(); $ message = isset ( $ strings [ $ key ] ) ? $ strings [ $ key ] : false ; if ( ! $ message ) return ; $ message = str_replace ( ':attribute' , $ attribute , $ message ) ; if ( method_exists ( $ this , $ replacer = "replace{$rule}" ) ) { $ message = $ this -> $ replacer ( $ message , $ parameters ) ; } return $ message ; }
Returns a translated message for the attribute

@param string $key
@param string $rule
@param string $attribute

@return string|null
Returns a translated message for the attribute