We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108fd64 commit 745fdd8Copy full SHA for 745fdd8
packages/media/config/media.php
@@ -89,4 +89,10 @@
89
'append_files' => true,
90
],
91
92
+
93
+ 'modal' => [
94
+ 'resource' => [
95
+ 'show_download_button' => false,
96
+ ],
97
98
];
packages/media/src/Resources/MediaResource.php
@@ -567,6 +567,7 @@ public static function table(Table $table): Table
567
\Filament\Tables\Actions\Action::make('download')
568
->label(__('media::fields.download_file'))
569
->icon('heroicon-m-arrow-down-tray')
570
+ ->visible(fn() => config('media.modal.resource.show_download_button', true))
571
->action(function (Media $record) {
572
return response()->download(
573
$record->getPath(),
0 commit comments