protected function getValidatorInstance($rules, $data, $model=null)
    {
        $factory = $this->container->make('Illuminate\Validation\Factory');

        if (method_exists($this, 'validatorInstance'))
        {
            return $this->container->call(
                [$this, 'validatorInstance'],
                compact('factory')
            );
        }

        return $factory->make(
            $data, $rules, $this->customMessages(), $this->customAttributes()
        );
    }
protected function getValidatorInstance($rules, $data, $model=null)
    {
        $factory = $this->container->make('Illuminate\Validation\Factory');

        if (method_exists($this, 'validatorInstance'))
        {
            return $this->container->call(
                [$this, 'validatorInstance'],
                compact('factory')
            );
        }

        return $factory->make(
            $data, $rules, $this->customMessages(), $this->customAttributes()
        );
    }
protected function getValidatorInstance ( $ rules , $ data , $ model = null ) { $ factory = $ this -> container -> make ( 'Illuminate\Validation\Factory' ) ; if ( method_exists ( $ this , 'validatorInstance' ) ) { return $ this -> container -> call ( [ $ this , 'validatorInstance' ] , compact ( 'factory' ) ) ; } return $ factory -> make ( $ data , $ rules , $ this -> customMessages ( ) , $ this -> customAttributes ( ) ) ; }
Get the validator instance to perform the actual validation

@return \Illuminate\Validation\Validator
Get the validator instance to perform the actual validation