Updates to service updating - phone
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user