AH
Size: a a a
AH
ВК
$ClothesType->ClothesColors()->saveMany(ClothesColor::whereIn('id', (array)$colors)->get());
$ClothesType->ClothesColors()->saveMany(ClothesColor::whereIn('id', (array)$colors)->get());
Д
EG
Д
AH
$ClothesType->ClothesColors()->saveMany(ClothesColor::whereIn('id', (array)$colors)->get());
$ClothesType->ClothesColors()->saveMany(ClothesColor::whereIn('id', (array)$colors)->get());
$ClothesType->ClothesColors()->sync($colors);Если второе,
$ClothesType->ClothesColors()->firstOrCreate([ключи для поиска], [добавляемые данные]);https://laravel.com/docs/7.x/eloquent-relationships#the-create-method
D
Д
D
Д
Д
Д
D
И
IA
D
И
И