public function getValidator()
    {
        if (!$this->validator) {
            $this->validator = static::$validatorFactory->make(
                [],
                static::getCreateRules(),
                static::getValidationMessages(),
                static::getValidationAttributes()
            );
        }

        return $this->validator;
    }
public function getValidator()
    {
        if (!$this->validator) {
            $this->validator = static::$validatorFactory->make(
                [],
                static::getCreateRules(),
                static::getValidationMessages(),
                static::getValidationAttributes()
            );
        }

        return $this->validator;
    }
public function getValidator ( ) { if ( ! $ this -> validator ) { $ this -> validator = static :: $ validatorFactory -> make ( [ ] , static :: getCreateRules ( ) , static :: getValidationMessages ( ) , static :: getValidationAttributes ( ) ) ; } return $ this -> validator ; }
Get the validator instance.

@return \Illuminate\Contracts\Validation\Validator
Get the validator instance .