freescout-customers-groups/Entities/Customer.php

18 lines
400 B
PHP

<?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);
}
}