I try to save my file uploads on a private disk, but I am unable to download my files after they have been uploaded.
in my filesystems.php
'documents' => [
'driver' => 'local',
'root' => storage_path('app/documents'),
'visibility' => 'private',
],
in my filament resource
FileUpload::make('aadhar')
->disk('documents')
->directory('aadhar')
->visibility('private')
->maxSize(512)
->enableDownload()
->enableOpen()
->preserveFilenames()
Is there any way to download private disk files? I don't need files visible for public use.