Update service update to use components, enhanced form handling and submission. Added pppoe to broadband and changed validation to allow for longer service number.
This commit is contained in:
@@ -88,10 +88,11 @@ class Broadband extends Type implements ServiceUsage
|
||||
public function validation(): array
|
||||
{
|
||||
return [
|
||||
'service_number' => 'nullable|string|min:10|max:10',
|
||||
'service_address' => 'nullable|string|min:3',
|
||||
'service_username' => 'nullable|string',
|
||||
'service_password' => 'nullable|string',
|
||||
'service_number' => 'nullable|string|min:10|max:11',
|
||||
'service_address' => 'nullable|string|min:5',
|
||||
'service_username' => 'exclude_without:pppoe|nullable|string|min:3',
|
||||
'service_password' => 'exclude_without:pppoe|nullable|string|min:8',
|
||||
'pppoe' => 'nullable|in:on',
|
||||
'connect_at' => 'nullable|date',
|
||||
'start_at' => 'nullable|date',
|
||||
'expire_at' => 'nullable|date|after:start_at',
|
||||
|
Reference in New Issue
Block a user