private function syncCategorys(Product $product, array $categorys) { $product->categorys()->sync($categorys); }