Ignore:
Timestamp:
11/11/21 21:36:24 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
4d73966
Parents:
90ab388
Message:

bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    r90ab388 r1f7c934  
    158158            $zip->close();
    159159            $headers = array('Content-Type' => 'application/octet-stream');
    160             $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip';
     160            $zip_new_name = Carbon::now()->format('d.m.Y - ') . 'Departments.zip';
    161161            return response()->download($zip_file, $zip_new_name, $headers);
    162162                }
     
    188188
    189189            $files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
     190
    190191            foreach ($files as $file) {
    191192
     
    198199                }
    199200            }
     201
    200202            $zip->close();
    201203            $headers = array('Content-Type' => 'application/octet-stream');
    202             $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip';
     204            $zip_new_name = Carbon::now()->format('d.m.Y - ') . $department->name . '.zip';
    203205            return response()->download($zip_file, $zip_new_name, $headers);
    204206                }
Note: See TracChangeset for help on using the changeset viewer.