minor fixes
This commit is contained in:
21
app/Repositories/Shop/CustomerSaleChannels.php
Normal file
21
app/Repositories/Shop/CustomerSaleChannels.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Shop;
|
||||
|
||||
use App\Models\Shop\CustomerSaleChannel;
|
||||
use App\Traits\Model\Basic;
|
||||
|
||||
class CustomerSaleChannels
|
||||
{
|
||||
use Basic;
|
||||
|
||||
public static function destroyByCustomerAndSaleChannel($customerId, $saleChannelId)
|
||||
{
|
||||
return CustomerSaleChannel::byCustomer($customerId)->bySaleChannel($saleChannelId)->delete();
|
||||
}
|
||||
|
||||
public static function getModel()
|
||||
{
|
||||
return CustomerSaleChannel::query();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user