Exemplo n.º 1
0
 protected function hash($value)
 {
     return NumericHelper::hexToBin(md5($value));
 }
Exemplo n.º 2
0
 /**
  * Set hash for attributes.
  *
  * @param array $attributes
  */
 public function setHash(array $attributes)
 {
     foreach ($attributes as $attribute) {
         $this->{$attribute . '_hash'} = NumericHelper::hexToBin(md5($this->{$attribute}));
     }
 }