src/User/Guest.php
public function getGroupsAttribute()
    {
        if (! isset($this->attributes['groups'])) {
            $this->attributes['groups'] = $this->relations['groups'] = Group::where('id', Group::GUEST_ID)->get();
        }

        return $this->attributes['groups'];
    }
public function getGroupsAttribute()
    {
        if (! isset($this->attributes['groups'])) {
            $this->attributes['groups'] = $this->relations['groups'] = Group::where('id', Group::GUEST_ID)->get();
        }

        return $this->attributes['groups'];
    }
public function getGroupsAttribute ( ) { if ( ! isset ( $ this -> attributes [ 'groups' ] ) ) { $ this -> attributes [ 'groups' ] = $ this -> relations [ 'groups' ] = Group :: where ( 'id' , Group :: GUEST_ID ) -> get ( ) ; } return $ this -> attributes [ 'groups' ] ; }
Get the guest's group, containing only the 'guests' group model.

@return \Flarum\Group\Group
Get the guest s group containing only the guests group model .