- Timestamp:
- 10/23/21 04:03:46 (3 years ago)
- Branches:
- develop, master
- Children:
- b39afb5
- Parents:
- c6b84df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/DepartmentsController.php
rc6b84df r4b7e2d3 147 147 if(!$flag) { 148 148 $zip->close(); 149 $headers = array('Content-Type' => 'application/octet-stream' ,);149 $headers = array('Content-Type' => 'application/octet-stream'); 150 150 $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip'; 151 151 return response()->download($zip_file, $zip_new_name, $headers); … … 153 153 else { 154 154 Alert::flash("All departments are empty", "warning"); 155 return redirect()-> route("dashboard.departments.index");155 return redirect()->back(); 156 156 } 157 157 } … … 186 186 else{ 187 187 Alert::flash("This department has no files", "warning"); 188 return redirect()-> route("dashboard.departments.index");188 return redirect()->back(); 189 189 } 190 190
Note:
See TracChangeset
for help on using the changeset viewer.