Updates to service updating - phone

This commit is contained in:
Deon George
2022-08-02 08:49:17 +10:00
parent 360182b6bb
commit 06b1eca306
2 changed files with 82 additions and 61 deletions

View File

@@ -48,4 +48,23 @@ class Phone extends Type
{
return $value ?: $this->supplied()->technology;
}
/* OVERRIDES */
/**
* Service update validation
*
* @return array
*/
public function validation(): array
{
return [
'service_number' => 'nullable|string|min:10|max:10',
'service_username' => 'nullable|string',
'service_password' => 'nullable|string',
'connect_at' => 'nullable|date',
'start_at' => 'nullable|date',
'expire_at' => 'nullable|date|after:start_at',
];
}
}