- 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/Controllers/Dashboard/DepartmentsController.php
rbd9e8e3 re6c1f87 36 36 $department->code = $request->code; 37 37 38 $len = Storage::disk('local')->path(''); 39 38 40 if(!Storage::disk('local')->has('Departments/' . $request->code)){ 39 41 Storage::disk('local')->makeDirectory('Departments/' . $request->code); … … 41 43 42 44 $department->user_id = auth()->id(); 43 $department->location = '/Departments/' . $request->code;45 $department->location = Storage::disk('local')->path('') . 'Departments/' . $request->code; 44 46 45 47 $department->save(); … … 65 67 $department->name = $request->name; 66 68 $department->code = $request->code; 67 $department->updated_at = Carbon::now();;68 69 69 $path = '/Departments/' . $request->code; 70 $department->location = $path; 70 $department->location = Storage::disk('local')->path('') . 'Departments/' . $request->code; 71 71 72 72 $files = Storage::allFiles($oldDepartmentCode);
Note:
See TracChangeset
for help on using the changeset viewer.