From 7142c17254c822720b9249b4d685665c28d6ce60 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..1ae2b91 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))); }