src/Traits/Friendly.php
protected function mergeMineAndRequestedFriends()
    {
        $all = $this->sentRequests;

        if($more = $this->receivedApprovedRequests->all())
        {
            foreach($more as $m)
            {
                $all->add($m);
            }
        }

        return $all;
    }
protected function mergeMineAndRequestedFriends()
    {
        $all = $this->sentRequests;

        if($more = $this->receivedApprovedRequests->all())
        {
            foreach($more as $m)
            {
                $all->add($m);
            }
        }

        return $all;
    }
protected function mergeMineAndRequestedFriends ( ) { $ all = $ this -> sentRequests ; if ( $ more = $ this -> receivedApprovedRequests -> all ( ) ) { foreach ( $ more as $ m ) { $ all -> add ( $ m ) ; } } return $ all ; }
Merge the result of two relationships.
@return mixed
Merge the result of two relationships .