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;
}