This code only shows the `first` data it finds.

```
public function getGroupInfo($eg_id){
        $members = \App\EventGroupMembers::where('eg_id', '=', $eg_id)->get();
        if ($members->count() > 0) {
            $user = \App\User::find($members[0]->user_id);
            echo $user->first_name;
        } else {
            return false;
        }
    }

```

Table `event_group_members`

```
eg_id      user_id
1          1
2          2
2          3
3          4
3          5

```

Table `user`

```
user_id    first_name
1          tony
2          steve
3          bruce
4          thor
5          clint

```

What should I do to show all the `first_names` with the same `eg_id`?