Changeset e6c1f87 for app/Http/Requests/Dashboard
- Timestamp:
- 10/18/21 19:54:18 (3 years ago)
- Branches:
- develop, master
- Children:
- b9c4a92
- Parents:
- bd9e8e3
- Location:
- app/Http/Requests/Dashboard
- Files:
-
- 2 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 } -
app/Http/Requests/Dashboard/UsernameSettingsRequest.php
rbd9e8e3 re6c1f87 35 35 $response = redirect() 36 36 ->route('dashboard.settings.index') 37 ->with (['active_tab' => 'security'])37 ->withInput(['active_tab' => 'security']) 38 38 ->withErrors($validator); 39 39 40 throw (new ValidationException($validator , $response))40 throw (new ValidationException($validator)) 41 41 ->errorBag($this->errorBag) 42 42 ->redirectTo($this->getRedirectUrl());
Note:
See TracChangeset
for help on using the changeset viewer.