laravel get only relationship
snippet in php

laravel get only relationship

user9101

$products = $popularProducts->pluck('product');