Ignore:
Timestamp:
10/24/21 23:35:45 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
495dd28
Parents:
94f05dc
Message:

edited folder seeder

File:
1 edited

Legend:

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

    r94f05dc rdf6e9ec  
    276276    public function downloadfolder(Request $request, $id)
    277277    {
    278         $folder = Folder::find($id);
    279 
    280         $FileSystem = new Filesystem();
    281         $zip_file = Storage::disk('uploads')->path('Folder.zip');
    282         $zip = new \ZipArchive();
    283         $zip->open($zip_file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE);
    284         $path = Storage::disk('uploads')->path($folder->department->location . DIRECTORY_SEPARATOR . $folder->name);
    285 
    286278        try {
     279            $folder = Folder::find($id);
     280            $FileSystem = new Filesystem();
     281            $zip_file = Storage::disk('uploads')->path('Folder.zip');
     282            $zip = new \ZipArchive();
     283            $zip->open($zip_file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE);
     284
     285            $path = Storage::disk('uploads')->path($folder->department->location . DIRECTORY_SEPARATOR . $folder->name);
     286
    287287            $files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
    288288
Note: See TracChangeset for help on using the changeset viewer.