pordonez
1 year ago
206
5
Laravel

Laravel get all files in a directory

Posted 1 year ago by pordonez

I would like to download all files in a directory

public function downloadcontract()
    {
        $path = public_path() . '/contracts/';

        return response()->download($path);
    }

but when i tried this it says "Failed - Server problem"

Please sign in or create an account to participate in this conversation.