sarga/packages/Webkul/Discount/src/Models/CartRuleCustomerGroups.php

20 lines
526 B
PHP

<?php
namespace Webkul\Discount\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Customer\Moels\CustomerGroupProxy;
use Webkul\Discount\Contracts\CartRuleCustomerGroups as CartRuleCustomerGroupContract;
class CartRuleCustomerGroups extends Model implements CartRuleCustomerGroupContract
{
protected $table = 'cart_rule_customer_groups';
protected $guarded = ['created_at', 'updated_at'];
public function customer_group()
{
return $this->hasOne(CustomerGroupProxy::modelClass());
}
}