file download for private files
I have a FileUpload field in my form. It uploads to the local driver because the uploaded files are buying invoices which should only be downloadable and viewable by logged in users.
The ->downloadable() function returns a 404 not found. So I have made a controller to return the download from Storage. This function does work. Is there a way to replace the downloadable() url to this custom url so it downloads via the controller instead? Or is there another better way to handle these private files?
The ->downloadable() function returns a 404 not found. So I have made a controller to return the download from Storage. This function does work. Is there a way to replace the downloadable() url to this custom url so it downloads via the controller instead? Or is there another better way to handle these private files?

