mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 18:08:06 +00:00
18 lines
374 B
PHP
18 lines
374 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ContactsList extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $withCount = ['contacts'];
|
|
|
|
public function contacts()
|
|
{
|
|
return $this->belongsToMany(Account::class, 'contacts_list_contact', 'contacts_list_id', 'contact_id');
|
|
}
|
|
}
|