protected function hasher($salt = '')
    {
        $salt = $salt ?: $this->slugWorkingRecord->{$this->slugDbFieldForSalt} ?: $this->slugSalt;

        if ($salt) {
            return Object::create('Milkyway\SS\Behaviours\Contracts\Slugger', $salt, $this->slugLength);
        }

        if (!$this->slugHasher) {
            $this->slugHasher = Object::create('Milkyway\SS\Behaviours\Contracts\Slugger', $salt, $this->slugLength);
        }

        return $this->slugHasher;
    }
protected function hasher($salt = '')
    {
        $salt = $salt ?: $this->slugWorkingRecord->{$this->slugDbFieldForSalt} ?: $this->slugSalt;

        if ($salt) {
            return Object::create('Milkyway\SS\Behaviours\Contracts\Slugger', $salt, $this->slugLength);
        }

        if (!$this->slugHasher) {
            $this->slugHasher = Object::create('Milkyway\SS\Behaviours\Contracts\Slugger', $salt, $this->slugLength);
        }

        return $this->slugHasher;
    }
protected function hasher ( $ salt = '' ) { $ salt = $ salt ? : $ this -> slugWorkingRecord -> { $ this -> slugDbFieldForSalt } ? : $ this -> slugSalt ; if ( $ salt ) { return Object :: create ( 'Milkyway\SS\Behaviours\Contracts\Slugger' , $ salt , $ this -> slugLength ) ; } if ( ! $ this -> slugHasher ) { $ this -> slugHasher = Object :: create ( 'Milkyway\SS\Behaviours\Contracts\Slugger' , $ salt , $ this -> slugLength ) ; } return $ this -> slugHasher ; }
Return the hasher service

@param string $salt

@return Slugger
Return the hasher service