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