diff --git a/src/Auth/User.php b/src/Auth/User.php index 12f75ff..3e95855 100644 --- a/src/Auth/User.php +++ b/src/Auth/User.php @@ -160,7 +160,7 @@ public function get() $userData = $this->data; $idKey = Config::get('id.key'); - $hidden = Config::get('hidden'); + $hidden = array_merge(Config::get('hidden'), ['roles']); $passwordKey = Config::get('password.key'); if (count($hidden) > 0) {