2019-06-07 16:54:27 +10:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Service;
|
|
|
|
|
2022-04-19 17:07:39 +10:00
|
|
|
use App\Models\DomainRegistrar;
|
2022-04-22 11:47:46 +10:00
|
|
|
use App\Traits\ServiceDomains;
|
2019-06-13 14:32:34 +10:00
|
|
|
|
2021-07-13 12:31:56 +10:00
|
|
|
/**
|
|
|
|
* Class Domain (Service)
|
2022-04-19 17:07:39 +10:00
|
|
|
* Services that are managed Domain Names
|
2021-07-13 12:31:56 +10:00
|
|
|
*/
|
2022-04-22 11:47:46 +10:00
|
|
|
class Domain extends Type
|
2019-06-07 16:54:27 +10:00
|
|
|
{
|
2022-04-19 17:07:39 +10:00
|
|
|
use ServiceDomains;
|
2019-06-13 14:32:34 +10:00
|
|
|
|
2022-04-19 17:07:39 +10:00
|
|
|
protected $table = 'service_domain';
|
2020-02-10 22:07:46 +11:00
|
|
|
protected $with = ['tld'];
|
2019-06-07 16:54:27 +10:00
|
|
|
|
2021-07-13 12:31:56 +10:00
|
|
|
/* RELATIONS */
|
|
|
|
|
2020-02-19 23:37:45 +11:00
|
|
|
public function registrar()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(DomainRegistrar::class,'domain_registrar_id');
|
|
|
|
}
|
2019-06-07 16:54:27 +10:00
|
|
|
}
|