25 lines
543 B
PHP
25 lines
543 B
PHP
<?php
|
|
/*
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
|
|
*/
|
|
|
|
namespace Modules\MMFCustomersGroups\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CustomersGroup extends Model {
|
|
/**
|
|
* Get the Mailbox this group is linked to.
|
|
*/
|
|
public function mailbox() {
|
|
return $this->belongsTo(Mailbox::class);
|
|
}
|
|
|
|
/**
|
|
* Get the Customers that are included in this group.
|
|
*/
|
|
public function customers() {
|
|
return $this->belongsToMany(Customer::class);
|
|
}
|
|
}
|