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