Changeset 94f05dc for app/Http/Requests/Dashboard
- Timestamp:
- 10/24/21 23:23:54 (3 years ago)
- Branches:
- develop, master
- Children:
- df6e9ec
- Parents:
- fa80fbe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/FolderRequest.php
rfa80fbe r94f05dc 41 41 $arch_id = $this->request->get('arch_id'); 42 42 43 $dept Id= explode('/', $arch_id)[0];43 $deptCode = explode('/', $arch_id)[0]; 44 44 $archNum = explode('/', $arch_id)[1]; 45 45 … … 48 48 } 49 49 50 if ($dept Id !== Department::find($this->request->get('department'))->code) {50 if ($deptCode != Department::find($this->request->get('department'))->code) { 51 51 $fail("Folder Archive ID field format is invalid"); 52 52 } 53 } catch (\Exception $e) { 53 } 54 catch (\Exception $e) { 54 55 $fail("Please enter folders Archive ID"); 55 56 }
Note:
See TracChangeset
for help on using the changeset viewer.