New to stack overflow and new to the language. I have some confusion on how to read this code, trying to learn the logic of it. If somebody can explain it will highly appreciate it.
$relationships = $member->relationships()
->whereIn('type_id', $this->getRelationshipTypesFor(['daughter', 'son']))
->with('member2.gender')
->get();
I'm confused if $member is assigning the relationship() which the variable $relationship? or is it from a constant Laravel function. I'm a bit lost on how to read this. Cheers for the help.