From 09970fd9a1bb5bab39727fa0ce228d948aaf8c5b Mon Sep 17 00:00:00 2001 From: wleona3 Date: Tue, 4 Jul 2017 09:03:35 -0400 Subject: [PATCH] Removed isset check for non-existant property Looks like a left over from the original eloquent model. --- src/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.php b/src/Model.php index a684e7d..7294767 100644 --- a/src/Model.php +++ b/src/Model.php @@ -909,7 +909,7 @@ public function offsetUnset($offset) */ public function __isset($key) { - return (isset($this->attributes[$key]) || isset($this->relations[$key])) || + return isset($this->attributes[$key]) || ($this->hasGetMutator($key) && ! is_null($this->getAttributeValue($key))); }