Cviebrock\EloquentSluggable\SluggableScopeHelpers::getSlugKeyName PHP Method

getSlugKeyName() public method

Primary slug column of this model.
public getSlugKeyName ( ) : string
return string
    public function getSlugKeyName()
    {
        if (property_exists($this, 'slugKeyName')) {
            return $this->slugKeyName;
        }
        $config = $this->sluggable();
        $name = reset($config);
        $key = key($config);
        // check for short configuration
        if ($key === 0) {
            return $name;
        }
        return $key;
    }