Some service host/domain updates, including schema updates

This commit is contained in:
Deon George
2022-08-02 19:16:52 +10:00
parent 06b1eca306
commit 2bac177618
13 changed files with 283 additions and 340 deletions

View File

@@ -16,6 +16,26 @@ class Domain extends Type
protected $table = 'service_domain';
protected $with = ['tld'];
/* OVERRIDES */
/**
* Service update validation
*
* @return array
*/
public function validation(): array
{
return [
'domain_name' => 'nullable|string|min:2',
'tld_id' => 'required|exists:tlds,id',
'expire_at' => 'required|date',
'domain_registrar_id' => 'required|exists:domain_registrars,id',
'registrar_account' => 'nullable|string',
'registrar_ns' => 'nullable|string',
'registrar_username' => 'nullable|string',
];
}
/* RELATIONS */
public function registrar()