@@ 320-324 (lines=5) @@ | ||
317 | ||
318 | $formattedKey = str_replace('.', '_', $key); |
|
319 | ||
320 | if ($this->hasGetAccessor($formattedKey)) { |
|
321 | $method = 'get'.Str::studly($formattedKey).'Attribute'; |
|
322 | ||
323 | return $this->{$method}($model); |
|
324 | } |
|
325 | ||
326 | if ($this->hasGetAccessor($key)) { |
|
327 | $method = 'get'.Str::studly($key).'Attribute'; |
|
@@ 326-330 (lines=5) @@ | ||
323 | return $this->{$method}($model); |
|
324 | } |
|
325 | ||
326 | if ($this->hasGetAccessor($key)) { |
|
327 | $method = 'get'.Str::studly($key).'Attribute'; |
|
328 | ||
329 | return $this->{$method}($model); |
|
330 | } |
|
331 | ||
332 | if ($this->hasRelatedKey($key, $model)) { |
|
333 | return $this->relatedKey($key, $model); |