Changeset e6c1f87 for app/Http/Requests/Dashboard/DocumentRequest.php
- Timestamp:
- 10/18/21 19:54:18 (3 years ago)
- Branches:
- develop, master
- Children:
- b9c4a92
- Parents:
- bd9e8e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/DocumentRequest.php
rbd9e8e3 re6c1f87 3 3 namespace App\Http\Requests\Dashboard; 4 4 5 use App\Models\Department; 5 6 use App\Models\Document; 6 7 use App\Models\FileType; … … 38 39 $arch_id = $this->request->get('arch_id'); 39 40 $deptId = explode('/', $arch_id)[0]; 40 if ($deptId !== $this->request->get('department')) {41 $fail("D ept id error");41 if ($deptId !== Department::find($this->request->get('department'))->code) { 42 $fail("Document Archive ID field format is invalid"); 42 43 } 43 44 }
Note:
See TracChangeset
for help on using the changeset viewer.