Updated customer group mapping function name

This commit is contained in:
jitendra 2019-03-13 12:24:32 +05:30
parent ff1154c422
commit 672f2f8c2b
3 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
@if (! is_null($customer->customer_group_id))
<?php $selectedCustomerOption = $customer->customerGroup->id ?>
<?php $selectedCustomerOption = $customer->group->id ?>
@else
<?php $selectedCustomerOption = '' ?>
@endif

View File

@ -119,7 +119,7 @@
</span>
<span class="value">
{{ $order->customer->customerGroup['name'] }}
{{ $order->customer->group['name'] }}
</span>
</div>
@endif

View File

@ -30,9 +30,9 @@ class Customer extends Authenticatable implements CustomerContract
/**
* Get the customer group that owns the customer.
*/
public function customerGroup()
public function group()
{
return $this->belongsTo(CustomerGroupProxy::modelClass());
return $this->belongsTo(CustomerGroupProxy::modelClass(), 'customer_group_id');
}
/**