mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 18:08:06 +00:00
20 lines
419 B
PHP
20 lines
419 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AccountCardDavCredentials extends Model
|
|
{
|
|
protected $table = 'account_carddav_credentials';
|
|
|
|
public function cardDavServer()
|
|
{
|
|
return $this->hasOne(SpaceCardDavServer::class, 'id', 'space_carddav_server_id');
|
|
}
|
|
|
|
public function getIdentifierAttribute()
|
|
{
|
|
return $this->username . '@' . $this->domain;
|
|
}
|
|
}
|