Fix 419 Page Expired errors by appending CSRF token to FormData and remove required validation on profile image and contact info fields
This commit is contained in:
@@ -234,17 +234,17 @@ class EmployeeController extends Controller
|
||||
'employee_status' => 'required|string|max:50',
|
||||
|
||||
// Contact information
|
||||
'address_line_1' => 'required|string|max:255',
|
||||
'city' => 'required|string|max:100',
|
||||
'state' => 'required|string|max:100',
|
||||
'country' => 'required|string|max:100',
|
||||
'postal_code' => 'required|string|max:20',
|
||||
'emergency_contact_name' => 'required|string|max:255',
|
||||
'emergency_contact_relationship' => 'required|string|max:100',
|
||||
'emergency_contact_number' => 'required|string|max:20',
|
||||
'address_line_1' => 'nullable|string|max:255',
|
||||
'city' => 'nullable|string|max:100',
|
||||
'state' => 'nullable|string|max:100',
|
||||
'country' => 'nullable|string|max:100',
|
||||
'postal_code' => 'nullable|string|max:20',
|
||||
'emergency_contact_name' => 'nullable|string|max:255',
|
||||
'emergency_contact_relationship' => 'nullable|string|max:100',
|
||||
'emergency_contact_number' => 'nullable|string|max:20',
|
||||
|
||||
// Banking information
|
||||
'bank_name' => 'required|string|max:255',
|
||||
'bank_name' => 'nullable|string|max:255',
|
||||
'account_holder_name' => 'nullable|string|max:255',
|
||||
'account_number' => 'nullable|string|max:50',
|
||||
'bank_identifier_code' => 'nullable|string|max:50',
|
||||
@@ -558,14 +558,14 @@ class EmployeeController extends Controller
|
||||
'employee_status' => 'required|string|max:50',
|
||||
|
||||
// Contact information
|
||||
'address_line_1' => 'required|string|max:255',
|
||||
'city' => 'required|string|max:100',
|
||||
'state' => 'required|string|max:100',
|
||||
'country' => 'required|string|max:100',
|
||||
'postal_code' => 'required|string|max:20',
|
||||
'emergency_contact_name' => 'required|string|max:255',
|
||||
'emergency_contact_relationship' => 'required|string|max:100',
|
||||
'emergency_contact_number' => 'required|string|max:20',
|
||||
'address_line_1' => 'nullable|string|max:255',
|
||||
'city' => 'nullable|string|max:100',
|
||||
'state' => 'nullable|string|max:100',
|
||||
'country' => 'nullable|string|max:100',
|
||||
'postal_code' => 'nullable|string|max:20',
|
||||
'emergency_contact_name' => 'nullable|string|max:255',
|
||||
'emergency_contact_relationship' => 'nullable|string|max:100',
|
||||
'emergency_contact_number' => 'nullable|string|max:20',
|
||||
|
||||
// Banking information
|
||||
'bank_name' => 'nullable|string|max:255',
|
||||
|
||||
Reference in New Issue
Block a user