Laravel milik orang mencegah duplikat melampirkan

$cart->items()->syncWithoutDetaching([$item->id]);
Alberto Peripolli