Changeset b9c4a92 for app/Http/Requests
- Timestamp:
- 10/18/21 23:00:23 (3 years ago)
- Branches:
- develop, master
- Children:
- ea7b12a
- Parents:
- e6c1f87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/DocumentRequest.php
re6c1f87 rb9c4a92 36 36 "arch_id" => [ 37 37 "required", 38 function ($attribute, $value, $fail) {38 function ($attribute, $value, $fail) { 39 39 $arch_id = $this->request->get('arch_id'); 40 40 $deptId = explode('/', $arch_id)[0]; 41 $archNum = explode('/', $arch_id)[1]; 42 43 if (empty($archNum)) { 44 $fail("Please enter documents Archive ID"); 45 } 46 41 47 if ($deptId !== Department::find($this->request->get('department'))->code) { 42 48 $fail("Document Archive ID field format is invalid");
Note:
See TracChangeset
for help on using the changeset viewer.