I've set up a group for a particular set of admin user's who need to be notified when new content is published. Let's call this group 'notify-admins' for the sake of argument.

I have this code, taken from the October docs on for ([Users and Permissions](https://octobercms.com/docs/backend/users))

```
Mail::sendTo(UserGroup::where('code', 'notify-admins')->get()->users, 'mailTemplate', $data);

```

However, this throws a `Property [users] does not exist on this collection instance` so clearlyI'm doing something wrong! 

All I need to do is pop out an email to all members of the group - whats the best way?