We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d292a2 commit 6b11977Copy full SHA for 6b11977
src/Eloquent/Model.php
@@ -156,11 +156,11 @@ public function getAttribute($key)
156
157
// This checks for embedded relation support.
158
if (
159
- method_exists($this, $key)
160
- && ! method_exists(self::class, $key)
161
- && ! $this->hasAttributeGetMutator($key)
162
- ) {
163
- return $this->getRelationValue($key);
+ method_exists($this, $key)
+ && ! method_exists(self::class, $key)
+ && ! $this->hasAttributeGetMutator($key)
+ ) {
+ return $this->getRelationValue($key);
164
}
165
166
return parent::getAttribute($key);
0 commit comments