This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
lucas.sanner54070
How can I get the backend users belonging to a given group ?
I tried the folowing:
UserGroup::where('code', 'head-office-staff')->get()->users;
but all I get is that message:
Property [users] does not exist on this collection instance.
Is there a specific method ?
Last updated
lucas.sanner54070
Ok, I think I've got it. Actually I want to use the first() method not get().
UserGroup::where('code', 'head-office-staff')->first()->users;
1-2 of 2