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;
    }
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;
    }
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 ; }
Retrieves the true key name for a key.

@param $key
@return string
Retrieves the true key name for a key .