Laravel milik orang mencegah duplikat melampirkan
$cart->items()->syncWithoutDetaching([$item->id]);
Alberto Peripolli
$cart->items()->syncWithoutDetaching([$item->id]);