mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
26 lines
511 B
PHP
26 lines
511 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ExternalAccount extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo('App\Account');
|
|
}
|
|
|
|
public function getIdentifierAttribute()
|
|
{
|
|
return $this->attributes['username'].'@'.$this->attributes['domain'];
|
|
}
|
|
|
|
public function getResolvedRealmAttribute()
|
|
{
|
|
return $this->attributes['domain'];
|
|
}
|
|
}
|