src/SluggableScopeHelpers.php
public function getSlugKeyName(): string
    {
        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;
    }
public function getSlugKeyName(): string
    {
        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;
    }
public function getSlugKeyName ( ) : string { 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 ; }
Primary slug column of this model.

@return string
Primary slug column of this model .