If I understood you correctly, you should have the following in your User model:
public function friends()
{
return $this->belongsToMany('User', 'user_has_friends', 'user_id', 'friend_id');
}
Of course modify accordingly to your needs.
Now you can grab friends like this:
$user = User::find(1);
foreach($user->friends as $friend)
{
echo $friend->name .'<br>';
}