diff --git a/src/Eloquent/Model.php b/src/Eloquent/Model.php index 226bc357d..ac11b9ae0 100644 --- a/src/Eloquent/Model.php +++ b/src/Eloquent/Model.php @@ -155,8 +155,12 @@ public function getAttribute($key) } // This checks for embedded relation support. - if (method_exists($this, $key) && ! method_exists(self::class, $key)) { - return $this->getRelationValue($key); + if ( + method_exists($this, $key) + && ! method_exists(self::class, $key) + && ! $this->hasAttributeGetMutator($key) + ) { + return $this->getRelationValue($key); } return parent::getAttribute($key);