All individual subscriptions are 50% off this week only!

5 months ago

Laravel get all files in a directory

Posted 5 months 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.