FIX_VALIDATION_RULES
This commit is contained in:
parent
b9da766600
commit
ef5982b4d1
@ -1178,9 +1178,9 @@ class TicketController extends BaseController
|
|||||||
],
|
],
|
||||||
'tpa_no' => [
|
'tpa_no' => [
|
||||||
'label' => 'TPA ID',
|
'label' => 'TPA ID',
|
||||||
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/]+$/]',
|
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/\-_]+$/]',
|
||||||
'errors' => [
|
'errors' => [
|
||||||
'regex_match' => 'TPA ID can only contain letters, numbers, and /.'
|
'regex_match' => 'TPA ID can only contain letters, numbers, /, -, and _.'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]',
|
'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]',
|
||||||
@ -1233,9 +1233,9 @@ class TicketController extends BaseController
|
|||||||
],
|
],
|
||||||
'hospital_address' => [
|
'hospital_address' => [
|
||||||
'label' => 'Hospital Address',
|
'label' => 'Hospital Address',
|
||||||
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s\-_.,#\/]+$/]',
|
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s.,#\/_-]+$/]',
|
||||||
'errors' => [
|
'errors' => [
|
||||||
'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, dashes, commas, dots, # and /).'
|
'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, -, _, ., ,, # and /).'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'hospital_state' => [
|
'hospital_state' => [
|
||||||
@ -1531,9 +1531,9 @@ class TicketController extends BaseController
|
|||||||
],
|
],
|
||||||
'tpa_no' => [
|
'tpa_no' => [
|
||||||
'label' => 'TPA ID',
|
'label' => 'TPA ID',
|
||||||
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/]+$/]',
|
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/\-_]+$/]',
|
||||||
'errors' => [
|
'errors' => [
|
||||||
'regex_match' => 'TPA ID can only contain letters, numbers, and /.'
|
'regex_match' => 'TPA ID can only contain letters, numbers, /, -, and _.'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]',
|
'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]',
|
||||||
@ -1586,9 +1586,9 @@ class TicketController extends BaseController
|
|||||||
],
|
],
|
||||||
'hospital_address' => [
|
'hospital_address' => [
|
||||||
'label' => 'Hospital Address',
|
'label' => 'Hospital Address',
|
||||||
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s\-_.,#\/]+$/]',
|
'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s.,#\/_-]+$/]',
|
||||||
'errors' => [
|
'errors' => [
|
||||||
'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, dashes, commas, dots, # and /).'
|
'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, -, _, ., ,, # and /).'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'hospital_state' => [
|
'hospital_state' => [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user