protected function validateSame($attribute, $value, $parameters)
    {
        $this->requireParameterCount(1, $parameters, 'same');

        $other = Arr::get($this->data, $parameters[0]);

        return (isset($other) && $value == $other);
    }
protected function validateSame($attribute, $value, $parameters)
    {
        $this->requireParameterCount(1, $parameters, 'same');

        $other = Arr::get($this->data, $parameters[0]);

        return (isset($other) && $value == $other);
    }
protected function validateSame ( $ attribute , $ value , $ parameters ) { $ this -> requireParameterCount ( 1 , $ parameters , 'same' ) ; $ other = Arr :: get ( $ this -> data , $ parameters [ 0 ] ) ; return ( isset ( $ other ) && $ value == $ other ) ; }
Validate that two attributes match.

@param  string  $attribute
@param  mixed   $value
@param  array   $parameters
@return bool
Validate that two attributes match .