From 8375bae851b1daaa2b70f4303cd01619fc9a76f7 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 14 Aug 2015 12:50:32 +0930 Subject: [PATCH] Fix Laravel 5.1 compat --- framework/core/src/Core/Users/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Core/Users/User.php b/framework/core/src/Core/Users/User.php index 1de0fa4cb..0ca0f87b2 100755 --- a/framework/core/src/Core/Users/User.php +++ b/framework/core/src/Core/Users/User.php @@ -558,7 +558,7 @@ class User extends Model // standard 'member' group, as well as any other groups they've been // assigned to. if ($this->is_activated) { - $groupIds = array_merge($groupIds, [Group::MEMBER_ID], $this->groups->lists('id')); + $groupIds = array_merge($groupIds, [Group::MEMBER_ID], $this->groups->lists('id')->all()); } event(new GetUserGroups($this, $groupIds));