- Timestamp:
- 10/31/21 22:35:15 (3 years ago)
- Branches:
- master
- Children:
- 190db9f
- Parents:
- 8fdb18e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/DepartmentsController.php
r8fdb18e r1451c6f 77 77 { 78 78 $location = 'Departments' . DIRECTORY_SEPARATOR . $request->code; 79 if(!Storage::disk('local')->has($location)){ 79 80 if(!Storage::disk('local')->has($location) && Folder::where('department_id', $department->id)->pluck('no_of_files')->first() > 0){ 80 81 Storage::disk('local')->move($oldLocation, $location); 81 82 $department->location = $location;
Note:
See TracChangeset
for help on using the changeset viewer.