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