protected function findValueToSlug($encryptUsing = null)
    {
        if (!$encryptUsing) {
            if (is_array($this->slugEncryptUsing)) {
                foreach ($this->slugEncryptUsing as $field) {
                    $encryptUsing .= $this->slugWorkingRecord->$field;
                }
            } else {
                $encryptUsing = $this->slugWorkingRecord->{$this->slugEncryptUsing};
            }
        }

        return is_numeric($encryptUsing) ? $encryptUsing : implode(array_map(function ($n) {
            return sprintf('%03d', $n);
        }, unpack('C*', $encryptUsing)));
    }
protected function findValueToSlug($encryptUsing = null)
    {
        if (!$encryptUsing) {
            if (is_array($this->slugEncryptUsing)) {
                foreach ($this->slugEncryptUsing as $field) {
                    $encryptUsing .= $this->slugWorkingRecord->$field;
                }
            } else {
                $encryptUsing = $this->slugWorkingRecord->{$this->slugEncryptUsing};
            }
        }

        return is_numeric($encryptUsing) ? $encryptUsing : implode(array_map(function ($n) {
            return sprintf('%03d', $n);
        }, unpack('C*', $encryptUsing)));
    }
protected function findValueToSlug ( $ encryptUsing = null ) { if ( ! $ encryptUsing ) { if ( is_array ( $ this -> slugEncryptUsing ) ) { foreach ( $ this -> slugEncryptUsing as $ field ) { $ encryptUsing .= $ this -> slugWorkingRecord -> $ field ; } } else { $ encryptUsing = $ this -> slugWorkingRecord -> { $ this -> slugEncryptUsing } ; } } return is_numeric ( $ encryptUsing ) ? $ encryptUsing : implode ( array_map ( function ( $ n ) { return sprintf ( '%03d' , $ n ) ; } , unpack ( 'C*' , $ encryptUsing ) ) ) ; }
Return value to hash

@param array|string $encryptUsing

@return int|string
Return value to hash