Fix Laravel 5.1 compat

This commit is contained in:
Toby Zerner 2015-08-14 12:50:32 +09:30
parent 8065c980d4
commit 34d4a7ed89

View File

@ -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));