laravel get only relationship data code example Example: laravel get only relationship $products = $popularProducts->pluck('product');