Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed May 16, 2024
1 parent b4f790e commit 1b02c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Forms/Components/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getDownloadItems(): Collection
return $this->getRecord()
->getMedia($this->getCollectionName())
->map(fn (Media $media) => [
'url' => $media->getFullUrl(),
'url' => $media->getTemporaryUrl(now()->addMinutes(10)),
'name' => $media->name . '.' . $media->extension,
]);
}
Expand Down
1 change: 1 addition & 0 deletions app/Filament/Resources/OrganizationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public static function form(Form $form): Form
->disk(config('filesystems.default'))
->inlineLabel()
->disablePreview()
->enableDownload()
->collection('statute')
->hiddenOn('view'),

Expand Down

0 comments on commit 1b02c40

Please sign in to comment.