osb/app/Models/Service/Domain.php

25 lines
422 B
PHP

<?php
namespace App\Models\Service;
use App\Models\DomainRegistrar;
use App\Traits\ServiceDomains;
/**
* Class Domain (Service)
* Services that are managed Domain Names
*/
class Domain extends Type
{
use ServiceDomains;
protected $table = 'service_domain';
protected $with = ['tld'];
/* RELATIONS */
public function registrar()
{
return $this->belongsTo(DomainRegistrar::class,'domain_registrar_id');
}
}