diff --git a/src/Traits/Messagable.php b/src/Traits/Messagable.php index feb9a46..ef44325 100644 --- a/src/Traits/Messagable.php +++ b/src/Traits/Messagable.php @@ -129,7 +129,7 @@ public function favourites() */ public function getNameAttribute() { - if($this->attributes['name']) + if(isset($this->attributes['name'])) return $this->attributes['name']; if($this->username)