freescout-customers-groups/Entities/Customer.php

19 lines
429 B
PHP
Raw Normal View History

2024-07-16 10:18:43 +00:00
<?php
/*
SPDX-License-Identifier: AGPL-3.0-only
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
*/
namespace Modules\MMFCustomersGroups\Entities;
use App\Customer as BaseCustomer;
class Customer extends BaseCustomer {
/**
* Get the groups this Customer belongs to.
*/
public function groups() {
return $this->belongsToMany(CustomersGroup::class, 'customers_group_customers');
2024-07-16 10:18:43 +00:00
}
}