sale_channels()->sync(SaleChannels::getDefault()); } public static function destroyByCustomerAndSaleChannel($customerId, $saleChannelId) { return CustomerSaleChannel::byCustomer($customerId)->bySaleChannel($saleChannelId)->delete(); } public static function getModel() { return CustomerSaleChannel::query(); } }