fixes
This commit is contained in:
@@ -9,6 +9,13 @@ class CustomerSaleChannels
|
||||
{
|
||||
use Basic;
|
||||
|
||||
public static function createByCustomer($customerId)
|
||||
{
|
||||
$customer = Customers::get($customerId);
|
||||
|
||||
return $customer->sale_channels()->sync(SaleChannels::getDefault());
|
||||
}
|
||||
|
||||
public static function destroyByCustomerAndSaleChannel($customerId, $saleChannelId)
|
||||
{
|
||||
return CustomerSaleChannel::byCustomer($customerId)->bySaleChannel($saleChannelId)->delete();
|
||||
|
||||
Reference in New Issue
Block a user