Eloquence\Behaviours\CamelCasing::getTrueKey PHP Метод

getTrueKey() публичный Метод

Retrieves the true key name for a key.
public getTrueKey ( $key ) : string
$key
Результат string
    public function getTrueKey($key)
    {
        // If the key is a pivot key, leave it alone - this is required internal behaviour
        // of Eloquent for dealing with many:many relationships.
        if ($this->isCamelCase() && strpos($key, 'pivot_') === false) {
            $key = camel_case($key);
        }
        return $key;
    }